# Error Codes & Retry Policy

Deterministic HTTP status codes, structured error payloads, and explicit retryability guidance.

> All non-200 responses charge 0 credits and return a machine-readable code plus retryable boolean.

## Error Reference Table

Use exponential backoff with jitter only for retryable errors. Client validation and quota errors require fixing request parameters or topping up credits.

| HTTP | Code | Credits Charged | Retryable | Resolution |
| --- | --- | --- | --- | --- |
| 400 | invalid_parameter | 0 | No | Check engine slug, ISO country code, or prompt length (<= 4000 chars). |
| 401 | unauthorized | 0 | No | Verify Bearer API key and scope permissions in console.geoeval.com. |
| 402 | insufficient_credits | 0 | No | Top up Pay-As-You-Go balance or upgrade monthly credit pool. |
| 422 | quota_exceeded | 0 | No | Response includes {resource, limit, used, plan}; reduce batch size or raise limit. |
| 429 | rate_limit_exceeded | 0 | Yes | Respect Retry-After header or switch high-volume traffic to POST /v1/batches. |
| 502 / 504 | upstream_capture_timeout | 0 | Yes | Transient upstream challenge after internal retries; safe to retry with backoff. |
