Skip to content

Commit 0f1eda6

Browse files
committed
NPA-5136: changes back to 422 from 400
1 parent b937c9c commit 0f1eda6

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

specification/examples/responses/GET_Consent/ID/errors/invalid-id.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ConsentInvalidIDError:
22
summary: Invalid ID
3-
description: 400 error raised due to an invalid ID request path being specified.
3+
description: Error raised due to an invalid ID request path being specified.
44
value:
55
issue:
66
- code: invalid
7-
diagnostics: "Invalid request with error - X-Request-ID header invalid"
7+
diagnostics: "Invalid request with error - ID must be a valid UUID."
88
details:
99
coding:
10-
- code: "INVALID_VALUE"
11-
display: "Required header parameter(s) are invalid."
10+
- code: "INVALID_ID_VALUE"
11+
display: "Required parameter(s) are invalid."
1212
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
1313
version: "1"
1414
severity: error

specification/examples/responses/GET_Consent/errors/invalid-status-parameter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ConsentInvalidStatusParameterError:
22
summary: status parameter invalid
3-
description: 400 error response bundle for an invalid status parameter
3+
description: 422 error response bundle for an invalid status parameter
44
value:
55
issue:
66
- code: invalid

specification/examples/responses/POST_Consent/errors/invalid_status.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PostConsentInvalidStatusError:
22
summary: Invalid Status Error
3-
description: 400 error response for invalid status
3+
description: 422 error response for invalid status
44
value:
55
issue:
66
- code: invalid

specification/validated-relationships-service-api.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ paths:
537537
| A single proxy relationship between consenting adults including details | `performer:identifier`=`9000000010` and/or `patient:identifier`=`9000000005` and `_include` = `Consent:patient` and `_include` = `Consent:proxy` | HTTP Status 200 Bundle containing a single proxy relationship including performer and patient details |
538538
| A single proxy relationship between a mother and child | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` | HTTP Status 200 Bundle containing a single proxy relationship |
539539
| A single proxy relationship between a mother and child including details | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `_include` = `Consent:patient` and `_include` = `Consent:proxy` | HTTP Status 200 Bundle containing a single proxy relationship including performer and patient details |
540-
| Invalid status parameter | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `status` = `test` | HTTP Status 400 and INVALID_PARAMETER error response |
540+
| Invalid status parameter | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `status` = `test` | HTTP Status 422 and INVALID_PARAMETER error response |
541541
| Invalid include parameter | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `_include` = `test` | HTTP Status 422 and INVALID_PARAMETER error response | | Missing identifier | `patient:identifier`=`9000000009` | HTTP Status 400 and MISSING_IDENTIFIER_VALUE error response |
542542
| Invalid identifier | `identifier`=`900000000` Note: This identifier is 9 characters long, too short to be NHS Number | HTTP Status 422 and INVALID_IDENTIFIER_VALUE error response |
543543
| Invalid identifier system | `identifier`=`https://fhir.nhs.uk/Id/nhs-number/9730675929` | HTTP Status 422 and INVALID_IDENTIFIER_SYSTEM error response |
@@ -600,7 +600,6 @@ paths:
600600
| ----------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
601601
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
602602
| 400 | `INVALID_VALUE` | Invalid header. For details, see the `diagnostics` field. |
603-
| 400 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
604603
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing performer:identifier or patient:identifier value. |
605604
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
606605
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
@@ -611,6 +610,7 @@ paths:
611610
| 408 | `TIMEOUT` | Request timed out. |
612611
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid performer:identifier or patient:identifier identifier system. |
613612
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed performer:identifier or patient:identifier NHS number. |
613+
| 422 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
614614
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
615615
616616
content:
@@ -723,7 +723,6 @@ paths:
723723
| 400 | `MISSING_SCOPE` | Missing scope. |
724724
| 400 | `MISSING_CATEGORY` | Missing category. |
725725
| 400 | `MISSING_DATETIME` | Missing datetime. |
726-
| 400 | `INVALID_PARAMETER` | Invalid status parameter. |
727726
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
728727
| 403 | `FORBIDDEN` | Access denied to resource. |
729728
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
@@ -740,6 +739,7 @@ paths:
740739
| 422 | `INVALID_DATETIME` | Invalid datetime. |
741740
| 422 | `INVALID_PROVISION` | Invalid provision. |
742741
| 422 | `INVALID_EXTENSION` | Invalid extension. |
742+
| 422 | `INVALID_PARAMETER` | Invalid status parameter. |
743743
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
744744
745745
content:
@@ -852,13 +852,13 @@ paths:
852852
| ----------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
853853
| 400 | `BAD_REQUEST` | Missing header or parameter. For details, see the `diagnostics` field. |
854854
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
855-
| 400 | `INVALID_VALUE` | Invalid request id. |
856-
| 400 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
857855
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
858856
| 403 | `FORBIDDEN` | Access denied to resource. |
859857
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
860858
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
861859
| 408 | `TIMEOUT` | Request timed out. |
860+
| 422 | `INVALID_ID_VALUE` | Invalid id. |
861+
| 422 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
862862
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
863863
864864
content:

0 commit comments

Comments
 (0)