diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts
index 12bc9cb07..77d7ea4ce 100644
--- a/src/api/routes/auth/forgot.ts
+++ b/src/api/routes/auth/forgot.ts
@@ -28,7 +28,7 @@ router.post(
requestBody: "ForgotPasswordSchema",
responses: {
204: {},
- 400: {
+ "4XX": {
body: "APIErrorOrCaptchaResponse",
},
},
diff --git a/src/api/routes/auth/login.ts b/src/api/routes/auth/login.ts
index 06e3fe43e..e787b5a95 100644
--- a/src/api/routes/auth/login.ts
+++ b/src/api/routes/auth/login.ts
@@ -41,7 +41,7 @@ router.post(
200: {
body: "LoginResponse",
},
- 400: {
+ "4XX": {
body: "APIErrorOrCaptchaResponse",
},
},
diff --git a/src/api/routes/auth/mfa/totp.ts b/src/api/routes/auth/mfa/totp.ts
index cc6e8a253..4959db10d 100644
--- a/src/api/routes/auth/mfa/totp.ts
+++ b/src/api/routes/auth/mfa/totp.ts
@@ -32,7 +32,7 @@ router.post(
200: {
body: "TokenResponse",
},
- 400: {
+ "4XX": {
body: "APIErrorResponse",
},
},
diff --git a/src/api/routes/auth/mfa/webauthn.ts b/src/api/routes/auth/mfa/webauthn.ts
index 80ff57f0f..7ec385cb8 100644
--- a/src/api/routes/auth/mfa/webauthn.ts
+++ b/src/api/routes/auth/mfa/webauthn.ts
@@ -45,7 +45,7 @@ router.post(
requestBody: "WebAuthnTotpSchema",
responses: {
200: { body: "TokenResponse" },
- 400: { body: "APIErrorResponse" },
+ "4XX": { body: "APIErrorResponse" },
},
}),
async (req: Request, res: Response) => {
diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts
index 2db60abd0..8eaf5eb38 100644
--- a/src/api/routes/auth/register.ts
+++ b/src/api/routes/auth/register.ts
@@ -45,7 +45,7 @@ router.post(
requestBody: "RegisterSchema",
responses: {
200: { body: "TokenOnlyResponse" },
- 400: { body: "APIErrorOrCaptchaResponse" },
+ "4XX": { body: "APIErrorOrCaptchaResponse" },
},
}),
async (req: Request, res: Response) => {
diff --git a/src/api/routes/auth/reset.ts b/src/api/routes/auth/reset.ts
index b14eb3791..e5ca664a1 100644
--- a/src/api/routes/auth/reset.ts
+++ b/src/api/routes/auth/reset.ts
@@ -39,7 +39,7 @@ router.post(
200: {
body: "TokenOnlyResponse",
},
- 400: {
+ "4XX": {
body: "APIErrorOrCaptchaResponse",
},
},
diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts
index b85120d84..8a641781c 100644
--- a/src/api/routes/auth/verify/index.ts
+++ b/src/api/routes/auth/verify/index.ts
@@ -46,7 +46,7 @@ router.post(
200: {
body: "TokenResponse",
},
- 400: {
+ "4XX": {
body: "APIErrorOrCaptchaResponse",
},
},
diff --git a/src/api/routes/auth/verify/resend.ts b/src/api/routes/auth/verify/resend.ts
index c9696ebdc..9c72cd6ce 100644
--- a/src/api/routes/auth/verify/resend.ts
+++ b/src/api/routes/auth/verify/resend.ts
@@ -28,7 +28,7 @@ router.post(
right: "RESEND_VERIFICATION_EMAIL",
responses: {
204: {},
- 400: {
+ "4XX": {
body: "APIErrorResponse",
},
500: {
diff --git a/src/api/routes/auth/verify/view-backup-codes-challenge.ts b/src/api/routes/auth/verify/view-backup-codes-challenge.ts
index 811de5084..b040238dd 100644
--- a/src/api/routes/auth/verify/view-backup-codes-challenge.ts
+++ b/src/api/routes/auth/verify/view-backup-codes-challenge.ts
@@ -29,7 +29,7 @@ router.post(
requestBody: "BackupCodesChallengeSchema",
responses: {
200: { body: "BackupCodesChallengeResponse" },
- 400: { body: "APIErrorResponse" },
+ "4XX": { body: "APIErrorResponse" },
},
}),
async (req: Request, res: Response) => {
|