From ca05753a3efa11f108d2f49ddeff91e862524388 Mon Sep 17 00:00:00 2001 From: Sergey Skrobotov Date: Wed, 23 Aug 2023 12:14:25 -0800 Subject: [PATCH] adding 400 response documentation to the API call --- .../textsecuregcm/controllers/AccountController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java index 5fb60c5e2..90fbeb001 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java @@ -459,6 +459,7 @@ public class AccountController { """ ) @ApiResponse(responseCode = "200", description = "Username link with the given handle was found.", useReturnTypeSchema = true) + @ApiResponse(responseCode = "400", description = "Request must not be authenticated.") @ApiResponse(responseCode = "404", description = "Username link was not found for the given handle.") @ApiResponse(responseCode = "422", description = "Invalid request format.") @ApiResponse(responseCode = "429", description = "Ratelimited.") @@ -481,7 +482,7 @@ public class AccountController { """ ) @ApiResponse(responseCode = "200", description = "An account with the given identifier was found.", useReturnTypeSchema = true) - @ApiResponse(responseCode = "400", description = "A client made an authenticated to this endpoint, and must not provide credentials.") + @ApiResponse(responseCode = "400", description = "Request must not be authenticated.") @ApiResponse(responseCode = "404", description = "An account was not found for the given identifier.") @ApiResponse(responseCode = "422", description = "Invalid request format.") @ApiResponse(responseCode = "429", description = "Rate-limited.")