Every error is JSON: { "error": "<code>", ...details } with an HTTP status. The error code is stable; details depend on the code.

Status codes

Why 503 and never 502

When the Base RPC, the Ethereum Sepolia RPC (ENS), Composio, LI.FI or the engine fails, the answer is 503, never 502. Behind Cloudflare a 502 or 504 body is replaced by Cloudflare’s own HTML page, so the caller would lose the error. Two families:
  • …_error: the service answered with a failure; details carry its status (for example composioStatus).
  • …_unreachable and engine_unavailable: no answer; details carry reason (timeout or a network code such as ECONNREFUSED).
Every 5xx is logged on the server as one line with the route, code and details, never keys.

Payment results

A money move refused by the wallet is not an HTTP error of your request; it is the tool’s result inside the run: A Mind without a connected wallet answers that it has no wallet yet (404 no_wallet on the internal routes); a Mind whose account can no longer be used answers 409 with the reason.

Credits

Before a run, 402 insufficient_credits (balanceUsd, pendingUsd, minRunUsd) or 402 daily_cap_reached (dailyCapUsd) means the owner’s credits cannot pay for it. Top up or raise the daily cap on the Credits screen. See Pay as you go.

Run errors

A run that fails sends a run.error event with a code, for example run_interrupted when a backend restarted mid-run. See Streaming events. The full list of codes per route is in docs/api-contract.md §7.