From 86f83635bc1661a3f573247426b3e300e72c76be Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 21 Jun 2024 18:05:04 -0400 Subject: [PATCH] Document a missing "capability downgrade" response --- .../textsecuregcm/controllers/DeviceController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java index 9b7770728..4cad19080 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java @@ -183,6 +183,7 @@ public VerificationCode createDeviceToken(@ReadOnly @Auth AuthenticatedAccount a """) @ApiResponse(responseCode = "200", description = "The new device was linked to the calling account", useReturnTypeSchema = true) @ApiResponse(responseCode = "403", description = "The given account was not found or the given verification code was incorrect") + @ApiResponse(responseCode = "409", description = "The new device is missing a capability supported by all other devices on the account") @ApiResponse(responseCode = "411", description = "The given account already has its maximum number of linked devices") @ApiResponse(responseCode = "422", description = "The request did not pass validation") @ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header(