Skip to content

Commit

Permalink
change response status from FORBIDDEN to BAD_REQUEST when an InvalidA…
Browse files Browse the repository at this point in the history
…dapterCapabilityException occurs
  • Loading branch information
hknots committed Jan 6, 2025
1 parent 3aa9915 commit 5585bd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ResponseEntity<String> handleInvalidSyncPageEntryException(Throwable e) {

@ExceptionHandler(InvalidAdapterCapabilityException.class)
public ResponseEntity<String> handleInvalidAdapterCapabilityException(Throwable e) {
return ResponseEntity.status(HttpStatus.FORBIDDEN).body(e.getMessage());
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(e.getMessage());
}

@ExceptionHandler(MissingRoleException.class)
Expand Down

0 comments on commit 5585bd3

Please sign in to comment.