Lookup API
Errors
Stable error codes.
Errors look like { "status": "error", "data": { "code": "...", "message": "..." } }.
| HTTP | code | When |
|---|---|---|
| 400 | INVALID_IP | Not an IPv4 or IPv6 address |
| 400 | INVALID_HOST / HOST_NOT_ALLOWED | Hostname lookups: not a hostname, or an internal or reserved one |
| 400 | VALIDATION_FAILED | Malformed body, unknown field group, more than 1000 addresses |
| 401 | API_KEY_INVALID | Missing, unknown, revoked or expired key (deliberately one code) |
| 403 | API_KEY_SUSPENDED | The key is suspended |
| 403 | FIELD_GROUP_NOT_ALLOWED | The key may not read a requested group |
| 403 | ORIGIN_NOT_ALLOWED | A browser call from an origin the key doesn't list |
| 404 | HOST_NOT_FOUND | The hostname has no IPv4 or IPv6 address |
| 429 | RATE_LIMITED / QUOTA_EXCEEDED | Per-minute limit or monthly quota reached (Retry-After) |
| 502 | HOST_RESOLUTION_FAILED | DNS for a hostname timed out or failed; try again |
| 503 | RELEASE_UNAVAILABLE | No release loaded yet (only right after a fresh install) |