Skip to content

Commit b553360

Browse files
502 error from api gateway
1 parent ce5e572 commit b553360

File tree

10 files changed

+37
-5
lines changed

10 files changed

+37
-5
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"message": "Bad Gateway"
3+
}

specification/api/components/endpoints/createMI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ responses:
1515
$ref: "../responses/errors/tooManyRequests.yml"
1616
'500':
1717
$ref: "../responses/errors/serverError.yml"
18+
'502':
19+
$ref: "../responses/errors/badGateway.yml"

specification/api/components/endpoints/getDataId.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ responses:
1313
$ref: "../responses/errors/tooManyRequests.yml"
1414
"500":
1515
$ref: "../responses/errors/serverError.yml"
16+
"502":
17+
$ref: "../responses/errors/badGateway.yml"

specification/api/components/endpoints/getLetterStatus.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ responses:
1111
$ref: "../responses/errors/tooManyRequests.yml"
1212
"500":
1313
$ref: "../responses/errors/serverError.yml"
14+
"502":
15+
$ref: "../responses/errors/badGateway.yml"
1416
tags:
1517
- letter

specification/api/components/endpoints/listLetters.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ responses:
1818
$ref: "../responses/errors/tooManyRequests.yml"
1919
'500':
2020
$ref: "../responses/errors/serverError.yml"
21+
'502':
22+
$ref: "../responses/errors/badGateway.yml"

specification/api/components/endpoints/patchLetter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ responses:
1515
$ref: "../responses/errors/tooManyRequests.yml"
1616
"500":
1717
$ref: "../responses/errors/serverError.yml"
18+
"502":
19+
$ref: "../responses/errors/badGateway.yml"
1820
tags:
1921
- letter

specification/api/components/endpoints/postLetters.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ responses:
1515
$ref: "../responses/errors/tooManyRequests.yml"
1616
'500':
1717
$ref: "../responses/errors/serverError.yml"
18+
'502':
19+
$ref: "../responses/errors/badGateway.yml"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
description: "Bad gateway"
2+
content:
3+
application/vnd.api+json:
4+
schema:
5+
$ref: "../../schemas/apiGatewayError.yml"
6+
examples:
7+
error-bad-request:
8+
$ref: ../../examples/errors/responses/bad-gateway.json
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
description: API gateway error response
2+
content:
3+
application/json:
4+
schema:
5+
type: object
6+
properties:
7+
message:
8+
type: string
9+
example: "Bad Gateway"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
temporary: false
1+
temporary: true
22
monitoring: false
33
access:
4-
$ref: ../environments/sandbox/access.yml
4+
$ref: ../environments/internal-dev-pr/access.yml
55
target:
6-
$ref: ../environments/sandbox/target.yml
6+
$ref: ../environments/internal-dev-pr/target.yml
77
target-attributes:
8-
$ref: ../environments/sandbox/target-attributes.yml
8+
$ref: ../environments/internal-dev-pr/target-attributes.yml
99
ratelimiting:
10-
$ref: ../environments/sandbox/rate-limiting.yml
10+
$ref: ../environments/internal-dev-pr/rate-limiting.yml

0 commit comments

Comments
 (0)