global exception

This commit is contained in:
jinho jeong
2022-05-03 11:54:31 +09:00
parent ea49bfd80f
commit 7e30c938e7

View File

@@ -17,7 +17,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(Exception.class)
protected ResponseEntity<String> handleException(Exception e){
log.info(e.getMessage());
return new ResponseEntity<>("invalid request", HttpStatus.INTERNAL_SERVER_ERROR);
return new ResponseEntity<>("invalid request", HttpStatus.BAD_REQUEST);
}
@ExceptionHandler(UserAlreadyExistException.class)