@alhwyn/luma. All errors extend LumaError and include status and optional body from the API response.
Error types
| Class | HTTP status | When |
|---|---|---|
ValidationError | 400 | Invalid request parameters or body |
AuthenticationError | 401 | Missing or invalid API key |
RateLimitError | 429 | Rate limit exceeded |
WebhookSignatureError | 401 | Webhook signature verification failed |
LumaError | other | Any other non-2xx response |
Webhook verification errors
Inbound webhook verification throwsWebhookSignatureError when the signature is missing, expired, or invalid: