Skip to content

Commit 36a6af7

Browse files
committed
NPA-4749 Update error messages
1 parent f091335 commit 36a6af7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

specification/examples/responses/GET_Consent/errors/invalid-identifier-system.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ConsentInvalidIdentifierSystemError:
44
value:
55
issue:
66
- code: invalid
7-
diagnostics: "Invalid request with error - performer:identifier system parameter is invalid."
7+
diagnostics: "Invalid request with error - performer:identifier or patient:identifier system parameter is invalid."
88
details:
99
coding:
1010
- code: "INVALID_IDENTIFIER_SYSTEM"

specification/examples/responses/GET_Consent/errors/invalid-identifier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ConsentInvalidIdentifierError:
44
value:
55
issue:
66
- code: invalid
7-
diagnostics: 'Invalid request with error - performer:identifier parameter is invalid.'
7+
diagnostics: 'Invalid request with error - performer:identifier or patient:identifier parameter is invalid.'
88
details:
99
coding:
1010
- code: "INVALID_IDENTIFIER_VALUE"

specification/examples/responses/GET_Consent/errors/missing-identifier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ConsentIdentifierMissingError:
44
value:
55
issue:
66
- code: invalid
7-
diagnostics: "Invalid request with error - performer:identifier parameter not found."
7+
diagnostics: "Invalid request with error - performer:identifier or patient:identifier parameter not found."
88
details:
99
coding:
1010
- code: "MISSING_IDENTIFIER_VALUE"

specification/validated-relationships-service-api.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,16 +521,16 @@ paths:
521521
| ----------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
522522
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
523523
| 400 | `INVALID_VALUE` | Invalid header. For details, see the `diagnostics` field. |
524-
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing NHS number. |
524+
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing performer:identifier or patient:identifier value. |
525525
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
526526
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
527527
| 403 | `FORBIDDEN` | Access denied to resource. |
528528
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
529529
| 404 | `GP_PRACTICE_NOT_FOUND` | GP Practice not found. |
530530
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
531531
| 408 | `TIMEOUT` | Request timed out. |
532-
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
533-
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed NHS number. |
532+
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid performer:identifier or patient:identifier identifier system. |
533+
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed performer:identifier or patient:identifier NHS number. |
534534
| 422 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
535535
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
536536

0 commit comments

Comments
 (0)