From 796f0b9a1b5c87d67f438c50e6afc82f8e0c9d29 Mon Sep 17 00:00:00 2001 From: svariant Date: Tue, 5 Dec 2023 11:44:20 +0100 Subject: [PATCH] [PRDP-269] Changed not found response --- .../it/gov/pagopa/receipt/pdf/helpdesk/GetReceiptError.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)