Skip to content

Commit 4986b8c

Browse files
authored
fix: JWT 예외 처리 시 HTTP 상태 코드 설정 추가 (#335)
1 parent 67a70ae commit 4986b8c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/ject/support/common/security/jwt/JwtExceptionHandlerFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ private void setErrorResponse(
6666
) throws IOException {
6767
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
6868
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
69+
response.setStatus(errorCode.getHttpStatus().value());
6970

7071
ApiResponse<String> errorResponse = new ApiResponse<>(
7172
errorCode.getCode(),

0 commit comments

Comments
 (0)