Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Changed code returned when revocationlist gateway failed to 502
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeinen committed Jun 2, 2021
1 parent 8359e2b commit 728b7ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public RevocationListController(String revokedCertsBaseUrl) {
}

@ExceptionHandler({HttpStatusCodeException.class})
@ResponseStatus(HttpStatus.NOT_FOUND)
@ResponseStatus(HttpStatus.BAD_GATEWAY)
public ResponseEntity<Object> requestFailed() {
return ResponseEntity.notFound().build();
return ResponseEntity.status(HttpStatus.BAD_GATEWAY).build();
}

private HttpHeaders createDownloadHeaders() {
Expand Down

0 comments on commit 728b7ca

Please sign in to comment.