> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endstate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# WebhookVerificationError

> A webhook delivery failed verification; `code` says why. Answer with a 4xx and do not process the body.

```ts theme={null}
class WebhookVerificationError extends EndstateError
```

## Example

```ts theme={null}
try {
  await verifyWebhook(rawBody, request.headers, secret);
} catch (err) {
  if (err instanceof WebhookVerificationError) return new Response(err.code, { status: 400 });
  throw err;
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.