orbit.test · mail.orbit.test · Local lab · merged demo project
Developer · documentation
Error catalogue
The intended stable error codes for v1. Clients should branch on codes, not on prose. No service returns these responses yet.
Errors
A stable code, an HTTP status and the recommended client behaviour.
| Status | Code | Meaning | Client behaviour |
|---|---|---|---|
| 429 | rate_limited | A rate limit was exceeded. Retry after the documented window. | Wait for retry_after, then retry with backoff and jitter. |
| 429 | quota_exceeded | The project or key quota is exhausted. | Wait for retry_after, then retry with backoff and jitter. |
| 422 | sender_not_verified | The From address is not verified for this project. | Fix the request before retrying. Surface the code and request ID. |
| 422 | suppressed_recipient | Every recipient is suppressed or excluded. | Fix the request before retrying. Surface the code and request ID. |
| 413 | payload_too_large | The encoded message or attachment exceeds the limit. | Fix the request before retrying. Surface the code and request ID. |
| 409 | idempotency_conflict | The idempotency key was reused with a different payload. | Inspect the original request; do not reuse the key with a different body. |
| 403 | unauthorized_scope | The API key does not include the required scope. | Add the scope deliberately; do not retry blindly. |
| 404 | not_found | The resource does not exist in the authorized project. | Do not retry. Check the project scope and resource ID. |
Error envelope
One envelope, with a support-friendly request ID.
{
"error": {
"code": "rate_limited",
"message": "The project exceeded 120 requests per minute.",
"request_id": "req_8f21c0",
"retry_after": 12,
"details": []
}
}The message is for humans and may change. The code, status and request ID are the parts a client may depend on.
Never retry a 4xx without changing the request
Safe retry rules
Retry only when the error is documented as transient or the request is idempotent.
Honour retry_after and add jitter to avoid synchronized retries.
Cap attempts and move persistent failures to a visible dead-letter state.
Log the request ID, not the API key or message body.
What is not settled
Whether a batch partially succeeds or fails atomically is unresolved.
Suppression responses must avoid revealing whether an address exists in another project.
Rate-limit windows and quotas are placeholders; they are not enforced.
A real error catalogue needs tests that pin the code-to-status mapping.
Do not parse messages
error.code and treat unknown codes as non-retryable until documented.