Skip to content

Commit

Permalink
refactor: 권한 예외일 경우 에러코드 수정 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdieHyun committed Jun 18, 2023
1 parent a0c16c1 commit aa39b5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class GlobalExceptionHandler {
public ResponseEntity<CustomErrorResponse> loginExceptionHandler(JwtTokenException e) {
return ResponseEntity
.badRequest()
.body(new CustomErrorResponse(HttpStatusCode.BAD_REQUEST, e.getMessage()));
.body(new CustomErrorResponse(HttpStatusCode.UNAUTHORIZED, e.getMessage()));
}

@ExceptionHandler(NoHandlerFoundException.class)
Expand Down

0 comments on commit aa39b5d

Please sign in to comment.