@RestControllerAdvicepublic class GlobalExceptionHandler { @ExceptionHandler({IllegalArgumentException.class}) public ResponseEntity handleException(IllegalArgumentException ex) { RestApiException restApiException = new RestApiException(ex.getMessage(), HttpStatus.BAD_REQUEST.value()); return new ResponseEntity( // HTTP body restApiException, ..