We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25a5ed commit 057fbddCopy full SHA for 057fbdd
src/server/routes/contract/subscriptions/add-contract-subscription.ts
@@ -149,8 +149,8 @@ export async function addContractSubscription(fastify: FastifyInstance) {
149
if (!webhook) {
150
throw createCustomError(
151
'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",
+ StatusCodes.BAD_REQUEST,
+ "INVALID_WEBHOOK",
154
);
155
}
156
0 commit comments