diff --git a/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java b/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java index 0bd9481..ab76ce8 100644 --- a/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java +++ b/src/main/java/com/kimgreen/backend/config/Authentication/JwtAuthenticationEntryPoint.java @@ -56,5 +56,6 @@ public void setResponse(HttpServletResponse response,int status,String msg) thro json.put("message", msg); String newResponse = new ObjectMapper().writeValueAsString(json); response.getWriter().write(newResponse); + response.setStatus(status); } }