clientSideError/serverSideError

This commit is contained in:
2021-12-02 12:32:33 +01:00
parent cb43c1475d
commit ca3d6c690b

View File

@ -92,17 +92,9 @@ paths:
schema:
$ref: "#/components/schemas/productionOrder"
400:
description: There is something wrong with the data you sent, look into the response object for details
content:
application/json:
schema:
$ref: "#/components/schemas/errorResultObject"
$ref: "#/components/responses/clientSideError"
500:
description: Internal Server Error
content:
application/json:
schema:
$ref: "#/components/schemas/errorResultObject"
$ref: "#/components/responses/serverSideError"
/pdb/v2/baseData/{articleNumber}:
get:
tags: [ "Regular" ]
@ -135,6 +127,19 @@ paths:
description: No such baseData entries available
components:
responses:
clientSideError:
description: There is something wrong with the data you sent, look into the response object for details
content:
application/json:
schema:
$ref: "#/components/schemas/errorResultObject"
serverSideError:
description: Internal Server Error, look into the response object for details
content:
application/json:
schema:
$ref: "#/components/schemas/errorResultObject"
schemas:
errorResultObject:
description: Object returned in case of an error