DocsHTTP APIPagination and errors

Pagination and errors

Cursor pagination and HTTP status mapping.

Cursor pagination

Workflow, job, notification, and retained log lists use opaque cursors. Clients should return the cursor unchanged and must not infer database offsets or identifiers from its contents.

Filters must remain stable while traversing a result set. A cursor created for one search or stream filter should not be reused with another.

Status mapping

StatusMeaning
400Invalid input, filter, or required idempotency header
401Missing or invalid session
403Permission denied
404Resource not found
409Already exists or aborted conflict
412Resource state does not permit the operation
429Downstream resource exhausted
503Required downstream service unavailable

Stream exceptions

After SSE headers are written, the gateway cannot replace the response status. Stream-open and receive failures are serialized as event: error frames.

Error stability

Clients should branch on HTTP status and documented structured fields, not exact human-readable error strings.