diff --git a/openapi/components/paths/friends.yaml b/openapi/components/paths/friends.yaml index 1f06bfa3..c0ce5051 100644 --- a/openapi/components/paths/friends.yaml +++ b/openapi/components/paths/friends.yaml @@ -58,6 +58,8 @@ paths: responses: '200': $ref: ../responses/notifications/NotificationResponse.yaml + '400': + $ref: ../responses/friends/FriendBadRequestError.yaml '401': $ref: ../responses/MissingCredentialsError.yaml '404': diff --git a/openapi/components/responses/friends/FriendBadRequestError.yaml b/openapi/components/responses/friends/FriendBadRequestError.yaml new file mode 100644 index 00000000..ccc2426f --- /dev/null +++ b/openapi/components/responses/friends/FriendBadRequestError.yaml @@ -0,0 +1,16 @@ +description: Bad request error response when sending a friend request +content: + application/json: + schema: + $ref: ../../schemas/Error.yaml + examples: + Users Already Friends: + value: + error: + message: Users are already friends + status_code: 400 + Already Sent a Friend Request: + value: + error: + message: This user has already been sent a friend request + status_code: 400