From 994ab920edbcb8fe388a34b4ed5c4bfec8bc944f Mon Sep 17 00:00:00 2001 From: Jack Plowman <62281988+JackPlowman@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:47:47 +0100 Subject: [PATCH] Add 404 not found error --- .../policies/RaiseFault.404NotFound.xml | 42 +++++++++++++++++++ proxies/live/apiproxy/targets/target.xml | 4 ++ 2 files changed, 46 insertions(+) create mode 100644 proxies/live/apiproxy/policies/RaiseFault.404NotFound.xml diff --git a/proxies/live/apiproxy/policies/RaiseFault.404NotFound.xml b/proxies/live/apiproxy/policies/RaiseFault.404NotFound.xml new file mode 100644 index 0000000..45a0df5 --- /dev/null +++ b/proxies/live/apiproxy/policies/RaiseFault.404NotFound.xml @@ -0,0 +1,42 @@ + + + + RaiseFault.404NotFound + + + + + 404 + NotFound + +{ + "issue": [ + { + "code": "processing", + "details": { + "coding": [ + { + "code": "INVALIDATED_RESOURCE", + "display": "Resource that has been marked as invalid was requested - invalid resources cannot be retrieved", + "system": "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode", + "version": "1" + } + ] + }, + "severity": "error" + } + ], + "resourceType": "OperationOutcome" +} + + + + true + diff --git a/proxies/live/apiproxy/targets/target.xml b/proxies/live/apiproxy/targets/target.xml index d4697cc..7ac4037 100644 --- a/proxies/live/apiproxy/targets/target.xml +++ b/proxies/live/apiproxy/targets/target.xml @@ -23,6 +23,10 @@ SetMimeType + + RaiseFault.404NotFound + response.header.x-amzn-ErrorType = IncompleteSignatureException +