Skip to content

Commit

Permalink
Fix response for runtime exception (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
3keyroman authored Oct 4, 2024
1 parent a32668e commit e5fc645
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ public ErrorMessageDto handleMessageNotReadable(CertificateRequestException ex)
* @return
*/
@ExceptionHandler(RuntimeException.class)
@ResponseStatus(HttpStatus.UNPROCESSABLE_ENTITY)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public ErrorMessageDto handleRuntimeException(RuntimeException ex) {
LOG.info("HTTP 422: {}", ex.getMessage());
LOG.info("HTTP 400: {}", ex.getMessage());
return ErrorMessageDto.getInstance(ex.getMessage());
}

Expand Down

0 comments on commit e5fc645

Please sign in to comment.