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:
parent
12cd49f903
commit
9b361011e7
2 changed files with 2 additions and 2 deletions
|
@ -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.',
|
||||
});
|
||||
|
|
|
@ -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.',
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue