diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/GetReceiptError.java b/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/GetReceiptError.java index 8d3d2f8..444dec7 100644 --- a/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/GetReceiptError.java +++ b/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/GetReceiptError.java @@ -58,7 +58,7 @@ public HttpResponseMessage run ( .build(); } catch (ReceiptNotFoundException e) { return request - .createResponseBuilder(HttpStatus.OK) + .createResponseBuilder(HttpStatus.NOT_FOUND) .body(ProblemJson.builder() .title(HttpStatus.NOT_FOUND.name()) .detail("No Receipt Error to process on bizEvent with id " + eventId)