Error codes
Every X9 API and MCP error has the same shape and links here from its docs field. The list below is every code the API and MCP sources can raise; an agent can switch on it.
Shape
{
"ok": false,
"error": {
"code": "OFFER_GONE",
"message": "offer not available now",
"retryable": false,
"retry_after_s": null,
"next_actions": [
{
"tool": "search_offers",
"why": "pick a live offer"
}
],
"docs": "https://x9si.com/errors/OFFER_GONE"
}
}
next_actionsnames the tool or call to make next, why, and sometimes an argument hint. Read it before anything else.retryablesays whether the same call can succeed later;retry_after_ssays when, if known.messageis a sentence for the case at hand; switch oncode.
All codes
30 codes. HTTP status as raised by the API code. A code without a status comes only from the MCP server, as a tool result.
| Code | HTTP status |
|---|---|
BENCH_TOO_SOON | 429 |
BOND_TOO_LOW | 409 |
BOOT_TIMEOUT | MCP tool answer |
BUDGET_EXCEEDED | 402 |
CAP_GPU_CLASS | 403 |
CAP_HOURLY_BURN | 429 |
DISK_OVER_QUOTE | 409 |
HOST_FAILED | 503, 504 |
IDEMPOTENCY_CONFLICT | 409 |
IMAGE_PULL_FAILED | MCP tool answer |
INSUFFICIENT_FUNDS | 402, 409 |
INTERNAL | 500, 502, 503 |
INVALID_ARGS | 400, 408, 409, 413 |
KYC_REQUIRED | 403 |
MACHINE_BUSY | 409 |
NOT_AVAILABLE_YET | 403, 501, 503 |
NOT_FOUND | 404 |
NO_CAPACITY | 409 |
OFFER_GONE | 409 |
PAYMENT_REQUIRED | 402 |
PRICE_MOVED | 409 |
PROTO_UNSUPPORTED | 426 |
PROVIDER_UNAVAILABLE | 503 |
QUOTE_EXPIRED | 409 |
RATE_LIMITED | 429 |
REGION_BLOCKED | 451 |
RESOURCE_NOT_RUNNING | 409 |
SCOPE_DENIED | 403 |
SELF_TEST_FAILED | 409 |
UNAUTHORIZED | 400, 401 |
Generated from /openapi.json and the API and MCP sources.