Errors
An error answers with the HTTP status below and the media type
application/problem+json. The body is a JSON object. Act on code. It never changes.
title and detail are for people and can change. When you contact us, quote
request_id.
{
"type": "https://api.intelligence.stratosphereips.org/guide/errors/#invalid_ip",
"title": "Invalid IP address",
"status": 400,
"detail": "'999.1.1.1' is not a valid IPv4 or IPv6 address.",
"instance": "/v1/ip/999.1.1.1",
"code": "invalid_ip",
"request_id": "3f1c0f7e-6a0e-4a8e-9c1f-2f7c1c7e9b11"
}
The type link of every error points to its row here.
| Code |
HTTP |
Meaning |
invalid_ip |
400 |
The address is not a valid IPv4 or IPv6 address. |
invalid_date |
400 |
A date is not YYYY-MM-DD, is in the future, or a range is inverted. |
invalid_api_key |
401 |
The bearer token is malformed or unknown. |
api_key_required |
401 |
Lists, lookups and changes need an API key. A free Community account gives you one. |
key_expired |
401 |
The key is past its expiry date. |
key_revoked |
401 |
The key was revoked. |
history_window_exceeded |
403 |
The requested date is older than your tier's history allows. |
account_suspended |
403 |
Your organisation's account is on hold. Its keys are refused until it is restored. |
account_cancelled |
403 |
Your organisation's account was cancelled. Its keys are refused. |
trial_ended |
403 |
The organisation's trial has ended. It can be extended or moved to a paid plan. |
forbidden |
403 |
The portal credential cannot do this. It needs the admin credential. |
date_embargoed |
403 |
Your plan gets this list 7 days after its date. |
list_not_in_plan |
403 |
Your plan does not include this list. The answer names the lists it does include. |
unknown_list |
404 |
The list id is not one of those at /v1/lists. |
invalid_model |
404 |
An upload names a model that is not one of the seven AIP models. |
date_not_available |
404 |
There is no successful load for that model and day. |
not_found |
404 |
No such resource, or no data for the request. |
conflict |
409 |
The request conflicts with the current state, e.g. the organisation exists or the key limit is reached. |
stale_list |
409 |
An upload from AIP was published before the list already held for that model and day. |
method_not_allowed |
405 |
The HTTP method is not supported here. |
list_too_large |
413 |
An uploaded list is larger than the limit. |
checksum_mismatch |
422 |
The SHA-256 of an uploaded list differs from its X-AIP-SHA256 header. |
invalid_list |
422 |
An uploaded list is not a gzip CSV the loader can read. |
validation_error |
422 |
A parameter is missing or has the wrong type. |
quota_exceeded |
429 |
This request costs more credits than your organisation has left for the period. |
rate_limited |
429 |
Too many requests in a short time. |
internal_error |
500 |
Unexpected server error. Quote the request_id. |
data_unavailable |
503 |
The database is not reachable. |
server_busy |
503 |
Too many requests are being served right now. Retry after the number of seconds in Retry-After. |
Some errors add fields. history_window_exceeded adds window_start. date_embargoed
adds available_from. quota_exceeded adds quota, resets_at, cost and
remaining, in credits. validation_error adds errors, with the place, message and
type of each problem.