Documentation

Errors

Standardized error envelopes across gateway endpoints.

Error format

Gateway errors return a JSON payload with an error code and a human-friendly message. Additional fields like fields, errors, or metadata provide context.

{
  "error": "MISSING_REQUIRED_FIELDS",
  "message": "Missing required fields: input.text",
  "fields": ["input.text"],
  "metadata": {
    "title": "Missing required fields"
  }
}

Common errors

CodeMeaningStatus
NO_TOKENAuthentication required. Missing or malformed credentials.401
TOKEN_INVALIDInvalid client ID or secret.401
ACCESS_DENIEDMissing required feature or scope.403
RATE_LIMITEDRequest or concurrent stream limit exceeded.429
USAGE_LIMIT_REACHEDMonthly token quota exceeded.403
MISSING_REQUIRED_FIELDSPayload is missing required fields.400
VALIDATION_ERRORPayload failed validation.400
SERVICE_UNAVAILABLEUpstream service unavailable.503
Was this page helpful?