Skip to content

Error Codes

All error responses follow a consistent format with a machine-readable code and a human-readable message.

Error response format

json
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable description",
    "details": {}
  }
}

Error code reference

CodeHTTP StatusDescriptionAction
VALIDATION_ERROR400Request parameters failed validationCheck query parameters match the expected types and ranges
MISSING_API_KEY401No X-API-Key header providedAdd the X-API-Key header to your request
INVALID_API_KEY401The API key is not recognisedVerify your API key is correct and active
FORBIDDEN403The API key is valid but access is deniedContact support — your organisation may be disabled
COLLECTION_NOT_FOUND404The requested collection does not existVerify the collection ID is correct
INTERNAL_ERROR500An unexpected server error occurredRetry after a short delay. Contact support if persistent.
BAD_GATEWAY502Upstream service errorRetry after a short delay. The upstream service may be temporarily unavailable.
SERVICE_UNAVAILABLE503Service temporarily unavailableInternal service issue. Retry after a short delay, or check the status page or contact support.

Detailed examples

VALIDATION_ERROR

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Request validation failed",
    "details": {
      "fields": [
        {
          "field": "page",
          "message": "Must be a non-negative integer"
        },
        {
          "field": "pageSize",
          "message": "Must be between 1 and 100"
        }
      ]
    }
  }
}

COLLECTION_NOT_FOUND

json
{
  "error": {
    "code": "COLLECTION_NOT_FOUND",
    "message": "Collection 'col_invalid' not found"
  }
}

BAD_GATEWAY

json
{
  "error": {
    "code": "BAD_GATEWAY",
    "message": "Error communicating with upstream service"
  }
}

SERVICE_UNAVAILABLE

json
{
  "error": {
    "code": "SERVICE_UNAVAILABLE",
    "message": "Service temporarily unavailable"
  }
}

HTTP status code summary

StatusDescription
200 OKRequest succeeded
304 Not ModifiedCollection unchanged (conditional request)
400 Bad RequestInvalid request parameters
401 UnauthorizedAuthentication required or failed
403 ForbiddenAccess denied
404 Not FoundResource not found
500 Internal Server ErrorUnexpected server error
502 Bad GatewayUpstream service error
503 Service UnavailableService temporarily unavailable

Interplai API v1.2.0