Errors
All non-GraphQL /v1 HTTP routes return a consistent JSON error envelope for
non-2xx responses.
error is the compatibility field and is always present. code is a stable
machine-readable classifier when available. New codes may be added during v0,
but existing code meanings should not change.
Common Codes
SDK Requirements
SDKs should preserve the raw response body, expose parsed error and code
helpers where possible, and include HTTP status, method, and path in exception
or error objects. SDKs must not log bearer tokens or idempotency keys at default
log levels.
GraphQL Errors
GraphQL routes use a GraphQL data / errors envelope instead of the standard
TraceDB JSON error envelope.
Native GraphQL data and errors may both be present when only part of the
operation fails.