PMM RFQ Error Codes

Detailing the error codes that can be returned by API endpoints

It's not always sunshine and rainbows! After rigorous testing we've devised error codes for each endpoint that gives you clarity on exactly what went wrong. Here at Bebop we prepare for the worst case, so you can have the best experience.

/quote Errors

Code
Detail
Reason

101

InvalidApiRequest

The API request is invalid - incorrect format or missing required fields

102

InsufficientLiquidity

There is insufficient liquidity to serve the requested trade size for the given tokens

103

GasCalculationError

There was a failure in calculating the gas estimate for this quotes transaction cost - this can occur when gas is fluctuating wildly

104

MinSize

User is trying to trade smaller than the minimum acceptable size for the given tokens

105

TokenNotSupported

The token user is trying to trade is not supported by Bebop at the moment

106

GasExceedsSize

Execution cost (gas) doesn't cover the trade size

107

UnexpectedPermitsError

Unexpected error when a user approves tokens via Permit or Permit2 signatures

111

RateLimited

Occurs due to rate limit breach. Please contract us for increased rate limits.

​/order Errors

Code
Detail
Reason

201

OrderInvalidContract

The transaction has failed preliminary simulation on EVM execution

202

LastLook

The order has failed makers' last look. This means that maker has withdrawn their quote in response to a likely arbitrage by the user. This protection allows makers to provide better quality pricing to users.

203

OrderExpired

The order has expired before it could be executed

204

InsufficientTakerBalance

The user does not have sufficient balance of the given token in their wallet to settle the order

205

InsufficientTakerApproval

The user does not have enough approval on the Bebop settlement contract for the given token

206

InsufficientMakerBalance

One or more makers involved in the order does not have enough balance to settle the order

207

InsufficientMakerApproval

One or more makers involved in the order does not have enough approval for the given tokens on the settlement contract

208

TransactionExecutionError

The transaction passed all preliminary checks and was sent to chain, but failed execution due to an unforeseen error

209

BusyExecutors

All transaction executors for Bebop are busy at the moment - give our gnomes a break!

210

InvalidQuoteId

User is trying to place an order on a QuoteID that does not exist, is no longer valid (expired) or on which an order has already been placed.

211

InvalidPermitsInfo

Permit or Permit2 signature provided is incorrect

212

InvalidOrderInput

sign_scheme doesn't contain one of the following values: EIP712, EIP1271, ETHSIGN

Code
Detail
Reason

400

Invalid address format

Wallet address is not a valid hex address.

Code
Detail
Reason

400

Invalid tx hash: {tx_hash}

Invalid transaction hash format (not a 66 character hex string).

404

Tx hash not found: {tx_hash}

Transaction hash not found. Make sure the transaction hash corresponds to a transaction executed on Bebop.

General Errors

Code
Error Name
Reason

500

UnknownError

Unknown error - most likely an unhandled backend exception

522

TimedOut

Connection timed out

Last updated