Skip to main content
Errors come in two flavors: CLI envelope errors (when --json is set) and HTTP errors (status code + JSON body).

CLI error envelope

Error codes

Auth and access

Validation

Trade execution

Resources

Upstream

Internal

How to debug

1

Capture the full error

--json always returns the full error envelope.
2

Note the trace id

details.traceId is the audit chain key.
3

Share the trace id with support

Include details.traceId in any support email or issue. SimpleFunctions can correlate it back to the originating request, monitor cycle, or portfolio tick.
4

Inspect risk gates

For RISK_GATE_FAIL, details.blocked lists the specific gate(s).

See also

JSON contract

Exit codes and CLI envelope shape.

Risk gates

Why entry orders fail.

Provenance

traceId audit chain lookup.