Errors
Every error from the API has the same shape: an RFC 9457 problem, sent as application/problem+json, with the HTTP status that suits it.
{ "type": "https://docs.farkitect.com/api/errors/missing-key", "title": "No API key was given", "status": 401, "detail": "Send your API key in the Authorization header: Authorization: Bearer fk_live_…", "code": "missing_key", "requestId": "req_46075e91719e4bd0a9a4"}| Field | What it is |
|---|---|
code |
What went wrong, as a code. Branch on this. Once v1 is declared stable, codes are never renamed or reused. |
status |
The HTTP status, the same as the response’s. |
title |
A short summary of the kind of problem. |
detail |
A full sentence about this request: what was wrong and what would be accepted. Written to be shown to a person, or read by an AI assistant fixing its own code. |
type |
The page here that explains the code. |
requestId |
This request’s id, also in the Farkitect-Request-Id header. Quote it when asking for help; it also appears in Organisation › Developers › Failed requests. |
errors |
Only for validation_failed: one entry per field, each with field (such as query.limit) and message. |
New codes may be added. If you meet one you don’t know, act on its status: 4xx means the request needs changing, 429 and 503 mean wait and try again, 500 means try again and tell us if it persists.
Every code
Section titled “Every code”| Code | Status | Meaning |
|---|---|---|
bad_request |
400 | The request can’t be read |
key_in_url |
400 | API keys go in the Authorization header, never in the address |
invalid_cursor |
400 | The cursor isn’t one this API gave |
validation_failed |
422 | Some fields aren’t valid |
idempotency_key_reused |
422 | The Idempotency-Key was used for a different request |
missing_key |
401 | No API key was given |
invalid_key |
401 | The API key isn’t recognised |
key_revoked |
401 | The API key has been revoked |
key_expired |
401 | The API key has expired |
browser_not_allowed |
403 | The API can’t be called from a web browser |
forbidden |
403 | This key may not do that |
organization_suspended |
403 | The organisation can’t use the API at present |
api_disabled_for_organization |
403 | The API is switched off for this organisation |
plan_required |
403 | This needs a plan the organisation doesn’t have |
not_found |
404 | Not found |
job_not_ready |
409 | The job hasn’t finished yet |
resync_required |
410 | Too long ago: read everything again |
precondition_failed |
412 | It has changed since you read it |
use_export_job |
413 | Too large for one call |
too_large |
413 | Too large |
rate_limited |
429 | Too many requests |
quota_exceeded |
429 | The organisation’s allowance is used up |
internal_error |
500 | Something went wrong at Farkitect |
api_disabled |
503 | The API is switched off for maintenance |
unavailable |
503 | Farkitect can’t answer at the moment |
busy |
503 | Farkitect is busy with other large requests |