diff --git a/daepiro-auth/src/main/java/com/numberone/backend/filter/JwtExceptionFilter.java b/daepiro-auth/src/main/java/com/numberone/backend/filter/JwtExceptionFilter.java index d0015dd..1b86896 100644 --- a/daepiro-auth/src/main/java/com/numberone/backend/filter/JwtExceptionFilter.java +++ b/daepiro-auth/src/main/java/com/numberone/backend/filter/JwtExceptionFilter.java @@ -27,7 +27,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse try { filterChain.doFilter(request, response); } catch (ExpiredJwtException e) { - httpResponseProvider.setErrorResponse(response, HttpServletResponse.SC_FORBIDDEN, EXPIRED_TOKEN); + httpResponseProvider.setErrorResponse(response, HttpServletResponse.SC_UNAUTHORIZED, EXPIRED_TOKEN); } catch (JwtException e) { httpResponseProvider.setErrorResponse(response, HttpServletResponse.SC_UNAUTHORIZED, INVALID_TOKEN); }