0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: add status 403 for custom jwt test API

This commit is contained in:
Darcy Ye 2024-03-21 12:51:57 +08:00
parent 239c17f367
commit 88f759c686
No known key found for this signature in database
GPG key ID: B46F4C07EDEFC610
2 changed files with 4 additions and 1 deletions

View file

@ -230,6 +230,9 @@
"400": {
"description": "Zod errors in cloud service (data type does not match expectation, can be either request body or response body)."
},
"403": {
"description": "Cloud connection does not have enough permission to perform the action."
},
"422": {
"description": "Syntax errors in cloud service."
}

View file

@ -319,7 +319,7 @@ export default function logtoConfigRoutes<T extends AuthedRouter>(
}),
]),
response: jsonObjectGuard,
status: [200, 400, 422],
status: [200, 400, 403, 422],
}),
async (ctx, next) => {
const {