Errors and fixes
Every error code the QSwap API returns, what it means and what to do. Plus Jupiter's execute codes.
Every non-2xx response has the same shape:
{ "error": { "code": "NO_ROUTE", "message": "human text", "details": {} } }BAD_REQUESTA parameter is missing or malformed.Your inputCheck what you enteredNOT_FOUNDNo such path or resource.Your inputReload; report it if it persistsRATE_LIMITEDToo many requests to the API or to Jupiter.NetworkWait, then try againUPSTREAM_ERRORJupiter or the Solana RPC failed.NetworkTry againNO_ROUTENo route between these tokens for this amount.MarketChange the pair or amountINSUFFICIENT_FUNDSYour balance is below the amount you entered.Your walletLower the amountINSUFFICIENT_SOLNot enough SOL to pay network fees or rent.Your walletAdd a little SOLBELOW_MINIMUMThe trade is below the gasless minimum.Your inputRaise the amountORDER_EXPIREDThe order expired before it landed.MarketGet a new price and sign againEXECUTE_FAILEDJupiter could not land the transaction.MarketGet a new price and sign againFEATURE_DISABLEDThis feature is turned off here.FeatureNothing: it's off on purposeINTERNALSomething went wrong on the server.NetworkReload; report it if it persists
Source: docs/API-CONTRACT.md → Error shape
Execute codes
- 0Success: the swap landed.
- -1Order not found: it expired or the requestId is wrong. Get a new order.
- -2The signed transaction is invalid.
- -3The message bytes are invalid.
- -1000The transaction failed to land.
- -1001Unknown error.
- -1002The transaction is invalid.
- -1003The transaction isn't fully signed.
- -1004Invalid block height.
- -1005Expired: get a new order.
- -2000…-2004RFQ (JupiterZ) errors. -2003: the market maker's quote expired.
Source: Jupiter Swap API v2 → POST /swap/v2/execute
A swap that fails to land is not an HTTP error: POST /swap/execute returns 200 with "status": "Failed", and code
and error filled in.
Retries
RATE_LIMITED: waits Retry-After
UPSTREAM_ERROR, network: waits longer each time
ORDER_EXPIRED: new order, you sign again
3 tries failed: the error shows
Jupiter's order errorCode maps to API codes: 1 → INSUFFICIENT_FUNDS, 2 → INSUFFICIENT_SOL (from JupiterZ, 2
means a missing token account and maps to UPSTREAM_ERROR), 3 → BELOW_MINIMUM, no route → NO_ROUTE.