Skip to content

Commit 71d4ccf

Browse files
committed
NPA-5086 Add 4XX Errors
1 parent fb5fb25 commit 71d4ccf

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ConsentInvalidIDError:
2+
summary: Invalid ID
3+
description: Error raised due to an invalid ID request path being specified.
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: 'Invalid request with error - ID must be a valid UUID.'
8+
details:
9+
coding:
10+
- code: "INVALID_ID_VALUE"
11+
display: "Required parameter(s) are invalid."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ConsentMissingIDError:
2+
summary: Missing ID
3+
description: Error raised due to an missing ID in the request path.
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Invalid request with error - ID must be specified in the request path."
8+
details:
9+
coding:
10+
- code: "MISSING_ID_VALUE"
11+
display: "Required parameter(s) are missing."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"

specification/validated-relationships-service-api.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,10 @@ paths:
789789
$ref: "./examples/responses/errors/access-denied.yaml#/AccessDeniedError"
790790
InvalidatedResourceError:
791791
$ref: "./examples/responses/errors/invalidated-resource.yaml#/InvalidatedResourceError"
792+
MissingIdError:
793+
$ref: "./examples/responses/GET_Consent_ID/errors/missing-id.yaml#/ConsentMissingIDError"
794+
InvalidIdError:
795+
$ref: "./examples/responses/GET_CONSENT_ID/errors/invalid-id.yaml#/ConsentInvalidIDError"
792796
"5XX":
793797
description: |
794798
Errors will be returned for the first error encountered in the request. An error occurred as follows:

0 commit comments

Comments
 (0)