Skip to content

Commit 430de0b

Browse files
committed
NPA-4474 Add proposal for new GET /Consent status codes
1 parent 7c8ec64 commit 430de0b

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,17 @@ paths:
435435
| HTTP status | Error code | Description |
436436
| ----------- | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
437437
| 400 | `MISSING_VALUE` | Missing header parameter. For details, see the `diagnostics` field. |
438-
| 400 | `INVALID_VALUE` | Invalid header parameter. For details, see the `diagnostics` field. |
439-
| 400 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
440438
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing performer NHS number. |
441-
| 400 | `INVALID_IDENTIFIER_VALUE` | Malformed performer NHS number. |
442439
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
443440
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
444441
| 403 | `FORBIDDEN` | Access denied to resource. |
445442
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
443+
| 404 | `GP_PRACTICE_NOT_FOUND` | GP Practice not found |
446444
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
447445
| 408 | `TIMEOUT` | Request timed out. |
446+
| 422 | `INVALID_VALUE` | Invalid header parameter. For details, see the `diagnostics` field. |
447+
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
448+
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed performer NHS number. |
448449
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
449450
450451
content:
@@ -466,8 +467,15 @@ paths:
466467
$ref: "./examples/responses/GET_Consent/errors/invalid-status-parameter.yaml#/ConsentInvalidStatusParameterError"
467468
InvalidIncludeParameterError:
468469
$ref: "./examples/responses/errors/invalid-include-parameter.yaml#/InvalidIncludeParameterError"
469-
"500":
470-
description: Internal server error
470+
"5XX":
471+
description: |
472+
Errors will be returned for the first error encountered in the request. An error occurred as follows:
473+
474+
| HTTP status | Error code | Description |
475+
| ----------- | ---------------------------------- | ------------------------------------------------------------ |
476+
| 500 | `SERVER_ERROR` | An unexpected internal server error has occurred. |
477+
| 503 | `DOWNSTREAM_SERVICE_ERROR` | A downsteam service has failed, request cannot be completed. |
478+
471479
content:
472480
application/fhir+json:
473481
schema:

0 commit comments

Comments
 (0)