Skip to content

Commit 117b8be

Browse files
nflaigrolfyone
andauthored
Replace 415 response with 406 for apis that only have ssz response body (#541)
Co-authored-by: Paul Harris <[email protected]>
1 parent 1e4fd73 commit 117b8be

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apis/beacon/states/pending_consolidations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ get:
4242
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
4343
"404":
4444
$ref: '../../../beacon-node-oapi.yaml#/components/responses/NotFound'
45-
"415":
46-
$ref: '../../../beacon-node-oapi.yaml#/components/responses/UnsupportedMediaType'
45+
"406":
46+
$ref: '../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable'
4747
"500":
4848
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

apis/beacon/states/pending_deposits.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ get:
4242
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
4343
"404":
4444
$ref: '../../../beacon-node-oapi.yaml#/components/responses/NotFound'
45-
"415":
46-
$ref: '../../../beacon-node-oapi.yaml#/components/responses/UnsupportedMediaType'
45+
"406":
46+
$ref: '../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable'
4747
"500":
4848
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'
4949

apis/beacon/states/pending_partial_withdrawals.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ get:
4242
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
4343
"404":
4444
$ref: '../../../beacon-node-oapi.yaml#/components/responses/NotFound'
45-
"415":
46-
$ref: '../../../beacon-node-oapi.yaml#/components/responses/UnsupportedMediaType'
45+
"406":
46+
$ref: '../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable'
4747
"500":
4848
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'
4949

0 commit comments

Comments
 (0)