0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

refactor: update status code

This commit is contained in:
Gao Sun 2024-06-23 10:47:44 +08:00
parent 12cd49f903
commit 9b361011e7
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ export default function adminUserSearchRoutes<T extends ManagementApiRouter>(
if (excludeRoleId && excludeOrganizationId) {
throw new RequestError({
code: 'request.invalid_input',
status: 422,
status: 400,
details:
'Parameter `excludeRoleId` and `excludeOrganizationId` cannot be used at the same time.',
});

View file

@ -95,7 +95,7 @@ export default function applicationRoutes<T extends ManagementApiRouter>(
if (excludeRoleId && excludeOrganizationId) {
throw new RequestError({
code: 'request.invalid_input',
status: 422,
status: 400,
details:
'Parameter `excludeRoleId` and `excludeOrganizationId` cannot be used at the same time.',
});