IPRout

API Errors and HTTP Status Codes

IPRout uses standard HTTP status codes: 401 for a missing or invalid key, 422 for an invalid explicit IP, 429 when a key or account limit is reached, and 500 for an unexpected server error. Read the JSON error message and retry only transient failures.

Last updated August 10, 2026

What errors can the API return?

Branch on the HTTP status before parsing a success payload.

StatusMeaningAction
401Invalid authenticationCheck or rotate the key
422Invalid IP inputCorrect the request
429Limit reachedCheck usage; wait or upgrade
500Server errorRetry with backoff

Which failures should be retried?

Retry network timeouts and 500 responses with bounded exponential backoff. Do not automatically retry 401 or 422 responses.

What should be logged?

Log status, route, timing, and a request correlation value when available. Redact Authorization and X-API-Key headers.