Skip to main content

Error format

All error responses follow the same structure:

HTTP status codes

Error handling by category

Authentication errors (401)

Fix: Check that you’re sending the correct key in the X-API-Key header. If the key was revoked or expired, create a new one from the dashboard.

Payment errors (402)

Fix: Top up your wallet. Consider enabling auto-refill to avoid this in the future.

Rate limit errors (429)

Fix: Wait for the duration specified in the Retry-After response header, then retry. See Rate Limits for retry strategies.

Retry strategy

A simple rule of thumb: