Skip to content

Commit 6c7869e

Browse files
[ERSSUP-81706]-[]-[Swapped Issue code to 'transient']-[JW]
1 parent 2724b36 commit 6c7869e

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

sandbox/src/mocks/r4/NHSDigital-OperationOutcome-503.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"issue": [
77
{
88
"severity": "error",
9-
"code": "timeout",
9+
"code": "transient",
1010
"details": {
1111
"coding": [
1212
{
1313
"system": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
14-
"code": "REC_SERVICE_UNAVAILABLE"
14+
"code": "REC_UNAVAILABLE"
1515
}
1616
]
1717
}

sandbox/src/mocks/stu3/STU3-ServiceUnavailable.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"issue": [
99
{
1010
"severity": "error",
11-
"code": "timeout",
11+
"code": "transient",
1212
"details": {
1313
"coding": [
1414
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: |
22
Defines a period (in seconds) after which the client should attempt their request again.
3-
required: true
3+
required: false
44
schema:
55
type: string
66
example: '120'

specification/components/r4/schemas/responses/ServiceUnavailable.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
description: |
22
Where status code 503 (Service Unavailable) is returned then an [NHSDigital-OperationOutcome](https://fhir.nhs.uk/StructureDefinition/NHSDigital-OperationOutcome) will be included in the body, as detailed below.
3-
In response to receiving this status code, it is recommended that clients retry at a later time based on a returned `Retry-After` header.
3+
In response to receiving this status code, it is recommended that clients retry at a later time based on a returned `Retry-After` header when provided.
44
55
| issue.details.coding.code | issue.code | Coding System | Description |
66
| ------------------------- | ---------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
7-
| REC_UNAVAILABLE | timeout | [BaRS Error Code](https://fhir.nhs.uk/CodeSystem/http-error-codes) | A request to an internal component timed out whilst attempting to serve a response. |
7+
| REC_UNAVAILABLE | transient | [BaRS Error Code](https://fhir.nhs.uk/CodeSystem/http-error-codes) | A request to an internal component timed out whilst attempting to serve a response. |
88
99
headers:
1010
X-Correlation-ID:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: |
22
Defines a period (in seconds) after which the client should attempt their request again.
3-
required: true
3+
required: false
44
schema:
55
type: string
66
example: '120'

specification/components/stu3/schemas/responses/ServiceUnavailable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: |
22
Where status code 503 (Service Unavailable) is returned then an eRS-OperationOutcome-1 will be included in the body, as detailed below.
3-
In response to receiving this status code, it is recommended that clients retry at a later time based on a returned `Retry-After` header.
3+
In response to receiving this status code, it is recommended that clients retry at a later time based on a returned `Retry-After` header when provided.
44
55
| Error code | Description |
66
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |

0 commit comments

Comments
 (0)