mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -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) {
|
if (excludeRoleId && excludeOrganizationId) {
|
||||||
throw new RequestError({
|
throw new RequestError({
|
||||||
code: 'request.invalid_input',
|
code: 'request.invalid_input',
|
||||||
status: 422,
|
status: 400,
|
||||||
details:
|
details:
|
||||||
'Parameter `excludeRoleId` and `excludeOrganizationId` cannot be used at the same time.',
|
'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) {
|
if (excludeRoleId && excludeOrganizationId) {
|
||||||
throw new RequestError({
|
throw new RequestError({
|
||||||
code: 'request.invalid_input',
|
code: 'request.invalid_input',
|
||||||
status: 422,
|
status: 400,
|
||||||
details:
|
details:
|
||||||
'Parameter `excludeRoleId` and `excludeOrganizationId` cannot be used at the same time.',
|
'Parameter `excludeRoleId` and `excludeOrganizationId` cannot be used at the same time.',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue