Skip to content

Errors & status codes

Every non-200 response uses one envelope:

{
"request_id": "01HV...",
"error": {
"code": "E2001",
"severity": "error",
"message": "Access denied for this operation",
"object": { "kind": "Metric", "name": "arr" },
"hint": "Contact policy author. Use request_id for support."
}
}

Always log the request_id — it ties the response to the immutable audit entry and any lineage events.

Band Meaning Typical HTTP
E0xxx Schema, authoring and runtime query errors (E05xx is the query runtime band) 400–503
E1xxx Resolve — valid request, can’t be resolved (e.g. metric/facet unknown) 422
E2xxx Policy — PDP deny or fail-closed 403 / 503
E3xxx Engine internals 401 / 500
Code HTTP Condition
E0511 400 Out-of-grammar / non-SELECT / doesn’t lower to an IR node — including empty keys for TRAVERSE and the Joint record form (no full-scan), bare rows over osl.documents, GROUP BY over RETRIEVE, an invalid ORDER BY or MATCHES
E0512 403 Non-declared object / outside the tenant allowlist
E0513 400 Body mixes osql with sql or MetricFlow fields, or explain: true without osql
E0514 400 JOIN … ON is not a sealed-entity-key equijoin — R3 firewall
E0515 403 Cross-modal join key not cleartext for the subject — fail-closed
E0516 403 Filter on a metadata field the subject’s grant masks or redacts
E0503 422 A selected Joint attribute source this runtime cannot execute (metric: / structured:<neighbor>) — fails before any read
E0517 — Partial content failure on a Joint — structured record kept, reported in partial_errors
E0518 400 An analytic, listing order, MATCHES(<field>) or joint-relation key references a column masked or withheld for the subject — refused, never answered with *** buckets
E0519 413 Population above the synchronous budget and not runnable as a job; a continued relevance read above the exact-paging bound; a passage that cannot fit one page
E0520 409 Pinned dataset version cannot be served exactly — never served from the latest version instead
E0521 503 Decoder projection op, CLASSIFY or SYNTHESISE with no LLM backend configured
E0522 400 Generative op output failed validation
E0523 502 A governed read could not be proven exact or complete — nothing partial is served
E0510 502 Structured backend (Trino) execution failure
E0538 409 Document-join key not unique on the entity side (counts only in the message)
Code HTTP Condition
E0530 400 Cursor not valid for this request (malformed, another subject, another query) — restart without after
E0531 409 Stale cursor (expired, version erased, policy or facet changed) — restart from page 1
E0532 429 A reading window of the subject’s policy is exhausted — Retry-After header and retry_after_seconds
E0533 503 MATCHES unavailable on the served version (no usable full-text index) — no fallback
E0534 503 A reading window applies but its ledger is unavailable — fail closed
Code HTTP Condition
E0524 503 A job was needed but no job store is configured
E0525 404 No such job for this subject — identical for another subject’s job
E0526 400 Invalid job request (e.g. allow_async not a boolean)
E0527 409 Operation not legal in the job’s current status (e.g. result before success)
Code HTTP Condition
E0289 422 on publish Strict physical validation refused the object (missing table or column, incompatible type, unreachable catalog); the dry run answers 200 with ok: false
E0592 412 If-Match precondition failed — the object changed since it was read
E0593 409 Delete refused — other objects still reference this one
E0594 409 Bootstrap (mounted) objects are read-only
E0595 404 Unknown object
Code HTTP Condition
E0276 403 / 404 The redaction version the subject’s policy requires is not available (no exact match, or not materialized) — never served empty or at another version; also an unknown version or document on the management API
E0277 422 A version refused at load (its fingerprint does not verify, or it was declared under removed detector rules), or a deleted version’s name declared again
E0278 422 An unknown, reserved or malformed class, an unavailable kind or modality, or a text class without a local model
E0279 409 Immutable or conflicting: an authored version edited through the generic publish, a duplicate definition, a version bound by a policy, a copy not available
E0290 409 / 422 A redaction-version state refusal (e.g. materializing, not_validated, sample_unresolved, no_source)
E0291 403 Four eyes: the author cannot approve, activate or decide on its own sample
E0292 422 A reason is required, or contains personal data
E0293 422 An unknown parent or superseded version in the lineage
E0295 409 / 422 / 429 A review request refusal (request_open, reviewer_not_eligible, remind_too_soon, …)
E0541 409 Any refusal of a document link or one of its members — uniform by design
E0542 — A member too large for the MCP channel
E0543 403 A caller kind or client network not permitted to open document links
E0544 429 A document-link rate limit (Retry-After)
E2003 503 The audit trail cannot record an action that must be audited first — nothing is revealed or changed
Code HTTP Condition
E2001 503 PDP snapshot missing — fail-closed
E2101 / E2102 403 PEP deny — out of scope / blocking obligation (also a denied facet in an analytic)
E2105 403 The subject has no grant — deny-by-default, before any data is read
E3001 401 Invalid or expired token

The canonical, exhaustive error model lives in the specification §9.