Clarified 400 responses descriptions

This commit is contained in:
Marco Realacci 2022-11-22 22:13:46 +01:00
parent f896e9ab48
commit 2baddf724d

View file

@ -208,8 +208,8 @@ paths:
schema: schema:
$ref: "#/components/schemas/generic_response" $ref: "#/components/schemas/generic_response"
example: example:
status: "User not found" status: "Resource not found"
'400': '400': # todo: not sure if this is the right error code
description: Trying to follow a user that does not exist. description: Trying to follow a user that does not exist.
content: content:
application/json: application/json:
@ -586,13 +586,13 @@ paths:
example: example:
status: "Resource not found" status: "Resource not found"
'400': '400':
description: Bad request, there is an error in one of the parameters. description: Some parameters are malformed.
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/generic_response" $ref: "#/components/schemas/generic_response"
example: example:
status: "Invalid limit or start_index" status: "Invalid start_index or limit value"
post: post:
tags: ["photos"] tags: ["photos"]