Skip to content

Commit b49cc2f

Browse files
AsterITAViktor-K
authored andcommitted
PIN-6700: Add organizationNotAllowedOnClient in getClient (#1796)
1 parent 0108f74 commit b49cc2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/authorization-process/src/utilities/errorMappers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const {
1717
export const getClientErrorMapper = (error: ApiError<ErrorCodes>): number =>
1818
match(error.code)
1919
.with("clientNotFound", () => HTTP_STATUS_NOT_FOUND)
20+
.with("organizationNotAllowedOnClient", () => HTTP_STATUS_FORBIDDEN)
2021
.otherwise(() => HTTP_STATUS_INTERNAL_SERVER_ERROR);
2122

2223
export const createConsumerClientErrorMapper = (

0 commit comments

Comments
 (0)