Errors

Error response format and common error codes.

Error response format

All errors follow a consistent JSON shape:

{
  "error": true,
  "type": "general",
  "code": 1234,
  "message": "Human-readable description",
  "payload": null
}
FieldTypeDescription
errorbooleanAlways true for error responses
typestringgeneral, auth, or system
codenumberMachine-readable error code
messagestringHuman-readable description
payloadnullAlways null on errors

Error types

TypeHTTP StatusWhen
auth401Invalid or missing API key
general400 / 404Validation failure, resource not found
system500Internal server error

Common error codes

CodeTypeDescription
1001authInvalid or expired API key
1002generalValidation failed — check request parameters
1003generalResource not found
1004generalRate limit exceeded
1005systemInternal server error — retry with backoff

HTTP status codes

StatusMeaning
200Success
400Bad request — validation error
401Unauthorized — invalid API key
404Not found
429Rate limit exceeded
500Internal server error

On this page