Skip to content

Commit

Permalink
refactor: add response status to exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
UmaxCode committed Jan 17, 2025
1 parent f87291b commit 6b9828a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public ErrorMessage accessDeniedHandler(AccessDeniedException ex, HttpServletReq
}

@ExceptionHandler(MethodArgumentNotValidException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public ErrorMessage handleArgumentNotValidException(MethodArgumentNotValidException ex, HttpServletRequest request) {

Map<String, String> errors = new HashMap<>();
Expand Down

0 comments on commit 6b9828a

Please sign in to comment.