Skip to content

Commit

Permalink
Merge pull request #108 from 0702Yoon/main
Browse files Browse the repository at this point in the history
refactor : token 만료 에러 header 설정
  • Loading branch information
0702Yoon authored Aug 16, 2024
2 parents 0cac045 + 582dcad commit 986b37f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private void handleException(HttpServletResponse response, BusinessException e)

if (e != null) {
response.setContentType("application/json");
response.setStatus(400);
response.setCharacterEncoding("UTF-8");
String jsonResponse = new ObjectMapper().writeValueAsString(ApiResponse.error(e.getErrorCode()));
response.getWriter().write(jsonResponse); // ApiResponse의 내용을 JSON으로 변환하여 작성
Expand Down

0 comments on commit 986b37f

Please sign in to comment.