Skip to content

Commit 8e0ed3b

Browse files
[ERSSUP-81706]-[]-[Swapped endpoints to return 503s rather than 504s]-[JW]
1 parent 2da516b commit 8e0ed3b

49 files changed

Lines changed: 115 additions & 95 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sandbox/src/mocks/r4/NHSDigital-OperationOutcome-504.json renamed to 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_GATEWAY_TIMEOUT"
14+
"code": "REC_UNAVAILABLE"
1515
}
1616
]
1717
}

sandbox/src/mocks/stu3/STU3-GatewayTimeout.json renamed to sandbox/src/mocks/stu3/STU3-ServiceUnavailable.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"issue": [
99
{
1010
"severity": "error",
11-
"code": "timeout",
11+
"code": "transient",
1212
"details": {
1313
"coding": [
1414
{
1515
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-APIErrorCode-1",
16-
"code": "GATEWAY_TIMEOUT",
17-
"display": "Gateway Timeout"
16+
"code": "SYSTEM_UNAVAILABLE",
17+
"display": "System Unavailable"
1818
}
1919
]
2020
}

specification/components/r4/schemas/endpoints/a030-retrieve-business-functions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@ responses:
111111
$ref: '../responses/TooManyRequests.yaml'
112112
'500':
113113
$ref: '../responses/InternalServerError.yaml'
114-
'504':
115-
$ref: '../responses/GatewayTimeout.yaml'
114+
'503':
115+
$ref: '../responses/ServiceUnavailable.yaml'

specification/components/r4/schemas/endpoints/a033-retrieve-healthcare-service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ responses:
6767
$ref: '../responses/TooManyRequests.yaml'
6868
'500':
6969
$ref: '../responses/InternalServerError.yaml'
70-
'504':
71-
$ref: '../responses/GatewayTimeout.yaml'
70+
'503':
71+
$ref: '../responses/ServiceUnavailable.yaml'

specification/components/r4/schemas/endpoints/a035-search-for-healthcare-services.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ responses:
7777
$ref: '../responses/TooManyRequests.yaml'
7878
'500':
7979
$ref: '../responses/InternalServerError.yaml'
80-
'504':
81-
$ref: '../responses/GatewayTimeout.yaml'
80+
'503':
81+
$ref: '../responses/ServiceUnavailable.yaml'

specification/components/r4/schemas/endpoints/a037-retrieve-healthcare-service-version.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ responses:
6464
$ref: '../responses/TooManyRequests.yaml'
6565
'500':
6666
$ref: '../responses/InternalServerError.yaml'
67-
'504':
68-
$ref: '../responses/GatewayTimeout.yaml'
67+
'503':
68+
$ref: '../responses/ServiceUnavailable.yaml'

specification/components/r4/schemas/endpoints/a040-retrieve-practitioner-info.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@
5555
$ref: '../responses/TooManyRequests.yaml'
5656
'500':
5757
$ref: '../responses/InternalServerError.yaml'
58-
'504':
59-
$ref: '../responses/GatewayTimeout.yaml'
58+
'503':
59+
$ref: '../responses/ServiceUnavailable.yaml'

specification/components/r4/schemas/endpoints/a041-search-service-request.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ responses:
7979
$ref: '../responses/TooManyRequests.yaml'
8080
'500':
8181
$ref: '../responses/InternalServerError.yaml'
82-
'504':
83-
$ref: '../responses/GatewayTimeout.yaml'
82+
'503':
83+
$ref: '../responses/ServiceUnavailable.yaml'

specification/components/r4/schemas/endpoints/a042-retrieve-attachment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ responses:
9595
$ref: '../responses/TooManyRequests.yaml'
9696
'500':
9797
$ref: '../responses/InternalServerError.yaml'
98-
'504':
99-
$ref: '../responses/GatewayTimeout.yaml'
98+
'503':
99+
$ref: '../responses/ServiceUnavailable.yaml'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
description: |
2+
Defines a period (in seconds) after which the client should attempt their request again.
3+
required: false
4+
schema:
5+
type: string
6+
example: '120'

0 commit comments

Comments
 (0)