Skip to content

Commit a93e8a3

Browse files
committed
NPA-4513 Add Post /Consent Status Codes 4XX Table
1 parent 4a55eae commit a93e8a3

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ paths:
438438
439439
| HTTP status | Error code | Description |
440440
| ----------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
441-
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
442-
| 400 | `INVALID_VALUE` | Invalid header. For details, see the `diagnostics` field. |
441+
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
442+
| 400 | `INVALID_VALUE` | Invalid header. For details, see the `diagnostics` field. |
443443
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing performer NHS number. |
444444
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
445445
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
@@ -450,7 +450,7 @@ paths:
450450
| 408 | `TIMEOUT` | Request timed out. |
451451
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
452452
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed performer NHS number. |
453-
| 422 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
453+
| 422 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
454454
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
455455
456456
content:
@@ -545,8 +545,23 @@ paths:
545545
examples:
546546
postConsentSuccess:
547547
$ref: "./examples/responses/POST_Consent/success.yaml#/PostConsentSuccess"
548-
"400":
549-
description: Invalid request
548+
"4XX":
549+
description: |
550+
Errors will be returned for the first error encountered in the request. An error occurred as follows:
551+
552+
| HTTP status | Error code | Description |
553+
| ----------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
554+
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
555+
| 403 | `FORBIDDEN` | Access denied to resource. |
556+
| 403 | `INVALID_ACCESS_LEVEL` | Invalid authorisation access level |
557+
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
558+
| 408 | `TIMEOUT` | Request timed out. |
559+
| 409 | `DUPLICATE_RELATIONSHIP` | Conflict with requested proxy role. |
560+
| 422 | `INVALID_NHS_NUMBER` | Invalid NHS number. |
561+
| 422 | `INVALID_PATIENT_AGE` | Patient age is invalid. |
562+
| 422 | `MISSING_EVIDENCE` | Evidence of responsibility is missing. |
563+
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
564+
550565
content:
551566
application/fhir+json:
552567
schema:
@@ -556,24 +571,10 @@ paths:
556571
$ref: "./examples/responses/POST_Consent/errors/invalid_performer_identifier_error.yaml#/PostConsentInvalidPerformerIdentifierError"
557572
postConsentInvalidAccessLevel:
558573
$ref: "./examples/responses/POST_Consent/errors/invalid_access_level_error.yaml#/PostConsentInvalidAccessLevelError"
559-
"422":
560-
description: Business rule validation failed
561-
content:
562-
application/fhir+json:
563-
schema:
564-
$ref: "#/components/schemas/OperationOutcome"
565-
examples:
566574
postConsentMissingEvidence:
567575
$ref: "./examples/responses/POST_Consent/errors/invalid_evidence_error.yaml#/PostConsentInvalidEvidenceError"
568576
postConsentInvalidPatientAge:
569577
$ref: "./examples/responses/POST_Consent/errors/invalid_patient_age_error.yaml#/PostConsentInvalidPatientAgeError"
570-
"409":
571-
description: "Conflict with requested proxy role"
572-
content:
573-
application/fhir+json:
574-
schema:
575-
$ref: "#/components/schemas/OperationOutcome"
576-
examples:
577578
postConsentDuplicateRelationship:
578579
$ref: "./examples/responses/POST_Consent/errors/duplicate_relationship_error.yaml#/PostConsentDuplicateRelationshipError"
579580

0 commit comments

Comments
 (0)