# Errors > One error shape everywhere. Switch on the code, show the message. Source: https://dropline.cleforyx.com/docs/developers/errors · Section: Developers · All docs: https://dropline.cleforyx.com/llms.txt ## Shape Error: ```json { "error": { "code": "send_daily_limit", "message": "You’ve reached today’s sending limit. It resets at midnight GMT.", "details": { "resetAt": "2026-10-31T00:00:00.000Z" } } } ``` `message` is written for people and may change. Your code should switch on `code`. `details` is optional and depends on the error. ## Codes | HTTP | Common codes | | --- | --- | | 400 | `validation_failed` (`details.issues` lists the fields), `invalid_address`, `send_too_many_recipients`, `send_message_too_large`, `webhook_url_invalid`, `idempotency_key_invalid`, `mailbox_unknown` | | 401 | `unauthorized`: missing, invalid or expired token | | 403 | `insufficient_scope`, `plan_no_send`, `plan_limit_webhooks`, `domain_not_verified` (sending from a domain whose MX, SPF or DKIM don’t check out), `mailbox_receive_only`, `mailbox_suspended`, `mailbox_disabled` | | 404 | `not_found` | | 409 | `mailbox_not_ready`: the mailbox is still being created | | 429 | `rate_limited` (API calls), `send_daily_limit`, `send_hourly_limit`, `send_new_recipient_limit`; a `Retry-After` header when known | | 5xx | `internal`, `ai_unavailable` (never for mail operations) | > [!TIP] > Retrying a send after a timeout? Set an `Idempotency-Key` so it can’t go out twice. See [Idempotency and pagination](https://dropline.cleforyx.com/docs/developers/idempotency). --- Previous: [MCP server](https://dropline.cleforyx.com/docs/developers/mcp.md) · Next: [Rate limits](https://dropline.cleforyx.com/docs/developers/rate-limits.md)