Skip to main content
Errors are a JSON object with an error field:

Numeric codes and reasons Not live yet

code becomes the HTTP status as a number, and the reason string below moves to error.metadata.reason. Read the reason as error.metadata.reason, falling back to error.code when it is a string, and the code works with both shapes. When a session was started before the error, error.session_id (or error.metadata.session_id) is set. Look it up with GET /v1/sessions/{id} to see every attempt and any channel that was opened. This list follows the server at the time of writing; /openapi.json is the reference. Treat an unknown 5xx as retryable after a pause, and any 4xx as a problem with the request. 429 and 503 responses carry a Retry-After header.

Retries

The router already retries on another miner when an attempt fails before any output. A reply that started is never retried, so a client-side retry can open a second channel. Retry after an error, never after a slow reply: a normal reply takes 15 to 50 s on devnet. Set your client timeout to at least 120 s.