Skip to content

Commit

Permalink
refactor: Validation 실패 경우 405 상태코드 반환하도록 수정 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdieHyun committed Jun 18, 2023
1 parent aa39b5d commit 4ba7f2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ResponseEntity<CustomErrorResponse> loginExceptionHandler(JwtTokenExcepti
public ResponseEntity<CustomErrorResponse> handleNotFoundError(NoHandlerFoundException e) {
return ResponseEntity
.status(HttpStatusCode.NOT_FOUND)
.body(new CustomErrorResponse(HttpStatusCode.NOT_FOUND, e.getMessage()));
.body(new CustomErrorResponse(HttpStatusCode.METHOD_NOT_ALLOWED, e.getMessage()));
}

@ExceptionHandler(MethodArgumentNotValidException.class)
Expand Down

0 comments on commit 4ba7f2f

Please sign in to comment.