Skip to content

Commit

Permalink
Add error code 408 and 413 to API response
Browse files Browse the repository at this point in the history
  • Loading branch information
bussec committed Feb 28, 2024
1 parent 95e8a43 commit 8994c8f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
26 changes: 25 additions & 1 deletion specs/adc-api-openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1051,13 +1051,25 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'408':
description: Operation timed out
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'413':
description: Content too large, max_size or max_query_size exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'

/reactivity:
post:
description: >
Expand All @@ -1084,6 +1096,18 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'408':
description: Operation timed out
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'413':
description: Content too large, max_size or max_query_size exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'500':
description: Server error
content:
Expand Down
24 changes: 24 additions & 0 deletions specs/adc-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,18 @@ paths:
description: Invalid request
schema:
$ref: '#/definitions/error_response'
'408':
description: Operation timed out
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'413':
description: Content too large, max_size or max_query_size exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'500':
description: Server error
schema:
Expand Down Expand Up @@ -1144,6 +1156,18 @@ paths:
description: Invalid request
schema:
$ref: '#/definitions/error_response'
'408':
description: Operation timed out
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'413':
description: Content too large, max_size or max_query_size exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
'500':
description: Server error
schema:
Expand Down

0 comments on commit 8994c8f

Please sign in to comment.