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 20, 2024
1 parent 9974f95 commit 1a5b1a2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions specs/adc-api-openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,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 Expand Up @@ -958,6 +970,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 @@ -1005,6 +1005,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 @@ -1058,6 +1070,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 1a5b1a2

Please sign in to comment.