Skip to content

Commit

Permalink
modify 400 bad request size
Browse files Browse the repository at this point in the history
  • Loading branch information
noemil12 committed Nov 28, 2023
1 parent 1515f50 commit 7af8a59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public void handle(JsonMappingException e) {
@ExceptionHandler(PDNDGenericException.class)
public Mono<ResponseEntity<Problem>> handleResponseEntityException(final PDNDGenericException exception){
log.warn(exception.toString());

final Problem problem = new Problem();
if (exception.getExceptionType() == ExceptionTypeEnum.SIGNALID_ALREADY_EXISTS) {
problem.setTitle(HttpStatus.BAD_REQUEST.name());
Expand Down

0 comments on commit 7af8a59

Please sign in to comment.