Skip to main content
Errors are JSON with a detail field. Only a 2xx response settles an x402 payment, so every error on this page is free.

400

Constraint mistakes name the expected parameters:

Insufficient capacity

Internally this is InsufficientCapacity. The risk rules and your constraints leave less room than total_capital. The detail says how much fits:
Here 5,000,000 USDC (5000000000000) was requested and 3,120,000 USDC (3120000000000) fits. Lower total_capital, add markets from the market list, or relax a constraint. The service never returns a partial plan.

401

402

The body and the base64 PAYMENT-REQUIRED header carry the same offer. error explains why: See Authentication and payments for the full offer.

422

Over MCP

A failed tool call returns isError: true with the same body in structuredContent: the offer for a payment problem, or {"status": 400, "detail": "..."} for anything else. See API MCP.