diff --git a/src/main/java/com/kim3ho1/yourprotein/service/FoodService.java b/src/main/java/com/kim3ho1/yourprotein/service/FoodService.java index ff30256..5ae7771 100644 --- a/src/main/java/com/kim3ho1/yourprotein/service/FoodService.java +++ b/src/main/java/com/kim3ho1/yourprotein/service/FoodService.java @@ -82,7 +82,7 @@ public HttpStatus deleteNote(Long noteId) { User user = principal.getUser(); Note note = noteRepository.findById(noteId).orElseThrow(() -> new RuntimeException()); if (note.getUser() != user) - return HttpStatus.BAD_GATEWAY; + return HttpStatus.BAD_REQUEST; noteRepository.delete(note); return HttpStatus.OK; }