Skip to content

Commit 057fbdd

Browse files
committed
make 400
1 parent d25a5ed commit 057fbdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/routes/contract/subscriptions/add-contract-subscription.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ export async function addContractSubscription(fastify: FastifyInstance) {
149149
if (!webhook) {
150150
throw createCustomError(
151151
'Failed to get or create webhook for contract subscription. Make sure you provide an valid "webhookId" or "webhookUrl".',
152-
StatusCodes.INTERNAL_SERVER_ERROR,
153-
"INTERNAL_SERVER_ERROR",
152+
StatusCodes.BAD_REQUEST,
153+
"INVALID_WEBHOOK",
154154
);
155155
}
156156

0 commit comments

Comments
 (0)