Skip to content

Commit

Permalink
fix(main-api): 에러 코드 문자열로 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
inferior3x committed Jan 19, 2025
1 parent ad3b8cf commit bb1471c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public void commence(HttpServletRequest request, HttpServletResponse response,
throws IOException{
response.setContentType("application/json;charset=UTF-8");
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); // 401
response.getWriter().write("{\"message\": \"인증이 필요합니다\", \"error_code\": 2001}");
response.getWriter().write("{\"message\": \"인증이 필요합니다\", \"error_code\": \"2001\"}");
}
}

0 comments on commit bb1471c

Please sign in to comment.