PromptFloe Developer Docs
Reference

Errors

Every error response uses a consistent shape. Use the code field for programmatic handling — error messages are human-readable and may change over time.

#Error shape

Error response
{
  "error": {
    "code": "quota_exceeded",
    "message": "Daily augmenter quota of 6 has been reached.",
    "type": "tier_limit",
    "requestId": "req_xxx",
    "retryAfterMs": 3_600_000,
    "docsUrl": "https://promptfloe.com/sdk/reference/errors#quota_exceeded"
  }
}

#Error codes

FieldTypeDescription
invalid_request400Request body fails validation. Inspect message for the offending field.
invalid_key401API key is malformed or missing.
expired_key401Key was rotated and the grace period ended.
missing_scope403Key is valid but lacks a scope required for this endpoint.
quota_exceeded403Workspace hit a daily limit. Wait for reset or upgrade tier.
tier_required403Endpoint requires a higher tier (e.g. augmenters need Basic+).
not_found404The resource doesn't exist or you don't have access.
conflict409Resource state conflict — alias already exists, lock contention.
unprocessable422Request is well-formed but semantically invalid (e.g. invalid template name).
rate_limited429Too many API calls. Back off using Retry-After.
internal_error500Server-side error. Safe to retry with backoff.
upstream_error502LLM provider returned an error. Auto-retried twice; if you see this, retry.
unavailable503Service temporarily unavailable. Retry with exponential backoff.
gateway_timeout504Upstream timed out. Safe to retry; LLM jobs may still be running server-side.

#Retry guidance

FieldTypeDescription
4xx (except 429)don't retryClient-side errors — fix the request and try again.
429back offHonor Retry-After header. Default to exponential backoff if missing.
5xxretryUse exponential backoff (1s, 2s, 4s, 8s with jitter). The SDK does this for you up to maxRetries.

The SDK auto-retries 429 + 5xx by default. Disable per-call with maxRetries: 0 for idempotency-sensitive operations.

#Request IDs

Every response — success or failure — includes an X-Request-Id header. Quote it when contacting support or filing bugs.

#Where to go next

PromptFloe developer docs