Skip to main content
ReferenceHelix Cloud
Helix Cloud query failures use one JSON envelope:
  • error is a stable, lower-snake-case code. Branch on this field.
  • msg is a human-readable diagnostic. Log it, but do not parse it or depend on its exact text.
  • The HTTP status remains part of the contract. Use it with error when deciding whether and how to retry.

Gateway error reference

The text in msg can include request-specific details. The error values and HTTP statuses above are the compatibility surface.

SDK access

Official SDKs decode error and msg into separate stable-code and diagnostic fields. Non-JSON responses from older endpoints and intermediaries remain available as readable diagnostics. Rust and TypeScript also retain the raw response body separately. The current SDK error objects do not expose response headers, including Retry-After. Use direct HTTP or an application transport that retains headers when the exact Cloud rate-limit delay is required. Branch on the stable code while retaining the diagnostic:

Timed-out writes

An HTTP 408 cancels the gateway’s wait, but a write can race with durable commit. Treat the outcome as unknown. Reconcile using an application identity or idempotency key before submitting the write again.

Migration from the previous shape

Some earlier responses used error for diagnostic text and code for the machine-readable value, while others returned only error. For Cloud gateway responses, migrate from this shape:
to error as the lower-snake-case code and msg as diagnostic text. Keep a readable diagnostic fallback for intermediaries and older self-hosted endpoints that do not return the Cloud envelope.