Errors & Edge Cases
Complete error catalog and async failure modes for production integrations.
Developers implementing retries and failure handling.
Complete error catalog and async failure modes for production integrations. Branch on error.code: messages are stable but intended for humans, not programmatic matching.
All errors use the envelope { "error": { "code": "…", "message": "…" } }. Some errors add an optional details field inside error. This includes unexpected server failures, which return 500 internal_error in the same envelope, so you never need to parse an HTML error page.
Request ids#
Every response carries an X-Request-Id header, on success and on error, including the run stream. When you report a problem to Edgaze, include it: it identifies the exact request in our logs. Log it next to your own request logs, and treat it as opaque.
Error catalog#
| Code | HTTP | When |
|---|---|---|
unauthorized | 401 | Invalid, missing, revoked, or expired API key |
account_restricted | 403 | The account that owns the key is restricted |
insufficient_scope | 403 | Key lacks required scope |
forbidden | 403 | Not entitled to the workflow or version (non-leaky) |
creator_listings_paused | 403 | The creator's paid listings are paused; the run was not created |
not_found | 404 | Unknown workflow or run, or cross-tenant run |
method_not_allowed | 405 | The resource does not support the HTTP method |
idempotency_conflict | 409 | Idempotency key reused with a different request |
integration_connection_required | 409 | The workflow needs a third-party account the runner has not connected |
invalid_request | 409 | Accept Workflow Update when the workflow has no active version |
spend_cap_reached | 402 | API key spend cap exceeded (sync, before run created) |
rate_limited | 429 | Too many POST /runs requests; up to 60 per minute per key are never limited. Wait Retry-After seconds and retry with the same idempotency key |
invalid_json | 400 | Request body is not valid JSON |
missing_workflow | 400 | POST /runs without a workflow id |
invalid_inputs | 400 | Missing, unknown, conflicting, or incorrectly typed inputs |
invalid_request | 400 | Invalid query parameter, pagination value, or request body (for example a malformed UUID), mismatched header and body idempotency keys, or an idempotency key over 255 characters |
invalid_cursor | 400 | Invalid SSE Last-Event-ID or afterSequence |
output_too_large | 413 | The run's output exceeds the maximum readable response size |
internal_error | 500 | Unexpected server error (no internals leaked) |
cancel_unavailable | 503 | Cancellation could not be delivered; retry the cancel shortly |
Every endpoint documents 429 rate_limited, but only POST /runs returns it today. Handle it everywhere anyway: wait Retry-After seconds and retry, so your integration keeps working if reads are ever limited.
The OpenAPI document lists, on each error response, every code that status can carry for that endpoint, in x-error-codes. Branch on error.code, and treat a code you do not recognize like any other error with that HTTP status.
invalid_inputs responses may include error.details, an array of { "input", "message" } objects naming each problem field. Treat details as optional.
integration_connection_required responses include error.details, an array of the accounts to connect. Each entry has provider (display name), providerId, makesChanges (whether the workflow writes to that account), and connectUrl, a page where a person can connect it in Edgaze settings. No other code carries details. The OpenAPI document models this as one error schema per kind (InvalidInputsError, IntegrationConnectionRequiredError, PlainError), discriminated by code, plus UnknownError for any code added after the version of the document you generated from. Response schemas never forbid extra fields, so a client generated from the document keeps working when fields or codes are added.
Async failures after 202#
The condition-by-condition contract for charging and retries is maintained in Create Run: funding and acceptance behavior.
Run model edge cases#
- free: runnable via wallet path when entitled.
- per_run: wallet or bundle charged at trigger.
Was this useful?
Your response helps us improve the documentation.