Getting started
Errors
Every error is JSON with a code to match on and a message to show to people.
The shape
{
"error": {
"code": "not_found",
"message": "No item with the key \"model:isles:nothing/here\". Find keys with /api/v1/search?q=name."
}
}Match on code: the messages may be reworded.
Status codes
- 200OKThe data.
- 304Not ModifiedYour If-None-Match matched: nothing changed, no body.
- 400
bad_requestA parameter has a value it does not take; the message says what it does take. - 401
bad_keyAn API key was sent that is unknown or revoked. - 404
not_foundNo item, source or icon with that key or path. - 405Method Not AllowedThe route does not take that method (all but /captures are GET).
- 429
rate_limitedOver the limit; wait for Retry-After seconds. See Rate limits. - 502
unavailableThe sync service behind the mod routes and icons did not answer. - 503
unavailableThe catalogue could not be loaded. Rare; try again in a minute.