We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0108f74 commit b49cc2fCopy full SHA for b49cc2f
packages/authorization-process/src/utilities/errorMappers.ts
@@ -17,6 +17,7 @@ const {
17
export const getClientErrorMapper = (error: ApiError<ErrorCodes>): number =>
18
match(error.code)
19
.with("clientNotFound", () => HTTP_STATUS_NOT_FOUND)
20
+ .with("organizationNotAllowedOnClient", () => HTTP_STATUS_FORBIDDEN)
21
.otherwise(() => HTTP_STATUS_INTERNAL_SERVER_ERROR);
22
23
export const createConsumerClientErrorMapper = (
0 commit comments