Skip to content

Commit 31c863f

Browse files
committed
NPA-6425: reverted the relevant 422 statuses back to 400
1 parent 9f5be89 commit 31c863f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

specification/validated-relationships-service-api.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -489,15 +489,15 @@ paths:
489489
| HTTP status | Error code | Description |
490490
| ----------- | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
491491
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing RelatedPerson NHS number. |
492+
| 400 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
493+
| 400 | `INVALID_VALUE` | Invalid Parameter or Invalid operation. |
494+
| 400 | `INVALID_PATIENT_IDENTIFIER_VALUE` | Malformed Patient NHS number. |
495+
| 400 | `INVALID_IDENTIFIER_VALUE` | Malformed RelatedPerson NHS number. |
492496
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
493497
| 403 | `FORBIDDEN` | Access denied to resource. |
494498
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
495499
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
496500
| 408 | `TIMEOUT` | Request timed out. |
497-
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
498-
| 422 | `INVALID_VALUE` | Invalid Parameter or Invalid operation. |
499-
| 422 | `INVALID_PATIENT_IDENTIFIER_VALUE` | Malformed Patient NHS number. |
500-
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed RelatedPerson NHS number. |
501501
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
502502
503503
content:
@@ -777,6 +777,7 @@ paths:
777777
| 400 | `MISSING_GRANTOR` | Grantor extension is required when creating or activating an active proxy role. |
778778
| 400 | `MISSING_GRANTOR_REFERENCE` | Grantor extension is present but missing valueReference. |
779779
| 400 | `MISSING_GRANTOR_IDENTIFIER`| Grantor extension is present but missing valueIdentifier. |
780+
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
780781
| 400 | `MISSING_STATUS` | Missing status. |
781782
| 400 | `MISSING_SCOPE` | Missing scope. |
782783
| 400 | `MISSING_CATEGORY` | Missing category. |
@@ -787,7 +788,6 @@ paths:
787788
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
788789
| 408 | `TIMEOUT` | Request timed out. |
789790
| 409 | `DUPLICATE_RELATIONSHIP` | Conflict with requested proxy role. |
790-
| 422 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
791791
| 422 | `INVALID_IDENTIFIER_VALUE` | Invalid grantee or patient identifier value. |
792792
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid grantee or patient identifier system. |
793793
| 422 | `INVALID_PATIENT` | Invalid patient. |
@@ -1073,15 +1073,15 @@ paths:
10731073
| 400 | `MISSING_GRANTOR` | Grantor extension is required when creating or activating a consent with status "active". For details, see the `diagnostics` field. |
10741074
| 400 | `MISSING_GRANTOR_REFERENCE` | Grantor extension reference is required when creating or activating a consent with status "active". For details, see the `diagnostics` field. |
10751075
| 400 | `MISSING_GRANTOR_IDENTIFIER`| Grantor extension identifier is required when creating or activating a consent with status "active". For details, see the `diagnostics` field. |
1076+
| 400 | `INVALID_PATCH` | Invalid patch. |
1077+
| 400 | `INVALID_VALUE` | Invalid Parameter or Invalid operation. |
10761078
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
10771079
| 403 | `FORBIDDEN` | Access denied to resource. |
10781080
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
10791081
| 408 | `TIMEOUT` | Request timed out. |
10801082
| 409 | `DUPLICATE_PATCHES` | Two or more patches use same path. |
10811083
| 415 | `UNSUPPORTED_MEDIA` | Unsupported media type. |
1082-
| 422 | `INVALID_VALUE` | Invalid Parameter or Invalid operation. |
10831084
| 422 | `INVALID_EXTENSION` | Invalid extension. |
1084-
| 422 | `INVALID_PATCH` | Invalid patch. |
10851085
| 422 | `INVALID_PATCH_PATH` | Invalid patch path. |
10861086
| 422 | `INVALID_STATUS_CODE` | Invalid status code. |
10871087
| 422 | `INVALID_STATUS_REASON` | Invalid status reason. |

0 commit comments

Comments
 (0)