API Error Codes - KitchenGPT Errors — KitchenGPT Developers - KitchenGPT

Errors

All errors use a consistent JSON envelope. HTTP status codes follow standard semantics. Failed async jobs also embed an error object on the job resource when status is failed.

Error envelope

{
  "error": {
    "code": "validation_error",
    "message": "image is required.",
    "details": {
      "image": ["The image field is required."]
    }
  }
}

HTTP status map

StatusMeaning
401Missing or invalid API key
403Client suspended or module not allowed
404Unknown endpoint, module, or job
422Validation failed
429Rate limit, request quota, or credits exceeded
500 / 502Unexpected processing failure — retry with backoff

Error codes

CodeDescription
unauthorizedMissing or invalid API key.
forbiddenThe API key is not allowed to access this resource.
module_not_allowedThis module is not enabled for your API client.
quota_exceededMonthly request quota has been reached.
credits_exceededMonthly credit allowance has been reached.
rate_limitedToo many requests. Retry after the indicated delay.
validation_errorOne or more request fields failed validation.
not_foundThe requested resource does not exist.
job_failedThe job completed with an error.
processing_errorThe request could not be processed.
service_unavailableTemporary service interruption. Retry with backoff.

Retries

  • Retry 429 and 5xx with exponential backoff. Honor Retry-After when present.
  • Do not retry 401, 403, or 422 without changing the request.
  • Idempotency: creating a job always starts a new run. Store the returned job id before polling.