backend: Update recording media response codes to include conflict and validation errors

This commit is contained in:
Carlos Santos 2025-04-29 13:05:29 +02:00
parent bdddeb34c5
commit ac9c803dcc

View File

@ -180,21 +180,14 @@
schema: schema:
type: string type: string
format: binary format: binary
'400':
description: Bad Request — Invalid range header format
content:
application/json:
schema:
$ref: '../components/schemas/error.yaml'
example:
code: 400
message: 'Invalid Range header'
'401': '401':
$ref: '../components/responses/unauthorized-error.yaml' $ref: '../components/responses/unauthorized-error.yaml'
'403': '403':
$ref: '../components/responses/forbidden-error.yaml' $ref: '../components/responses/forbidden-error.yaml'
'404': '404':
$ref: '../components/responses/error-recording-not-found.yaml' $ref: '../components/responses/error-recording-not-found.yaml'
'409':
$ref: '../components/responses/error-recording-in-progress.yaml'
'416': '416':
description: Requested range not satisfiable description: Requested range not satisfiable
content: content:
@ -204,5 +197,7 @@
example: example:
code: 416 code: 416
message: 'Requested range not satisfiable' message: 'Requested range not satisfiable'
'422':
$ref: '../components/responses/validation-error.yaml'
'500': '500':
$ref: '../components/responses/internal-server-error.yaml' $ref: '../components/responses/internal-server-error.yaml'