From 2baddf724d6ead3bd46d73609fc03d6c307c30b2 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Tue, 22 Nov 2022 22:13:46 +0100 Subject: [PATCH] Clarified 400 responses descriptions --- doc/api.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api.yaml b/doc/api.yaml index 2ae4ca2..f0b723b 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -208,8 +208,8 @@ paths: schema: $ref: "#/components/schemas/generic_response" example: - status: "User not found" - '400': + status: "Resource not found" + '400': # todo: not sure if this is the right error code description: Trying to follow a user that does not exist. content: application/json: @@ -586,13 +586,13 @@ paths: example: status: "Resource not found" '400': - description: Bad request, there is an error in one of the parameters. + description: Some parameters are malformed. content: application/json: schema: $ref: "#/components/schemas/generic_response" example: - status: "Invalid limit or start_index" + status: "Invalid start_index or limit value" post: tags: ["photos"]