Skip to main content

Why is my Quoter simulation status Error but the HTTP status is 200?

HTTP 200 means Quoter processed the simulate request. Whether the transaction would succeed on-chain is in result.status. Error means it would fail; inspect result.error.

J
Written by Javier Diaz

HTTP 200 means Enso Quoter processed the simulate request. Whether the transaction would succeed on-chain is in result.status. "Error" means it would fail on the fork; inspect result.error and do not send the transaction.

Definition

Quoter separates transport success from execution success. A well-formed simulate call can return 200 with result.status set to "Error" when the calldata would revert or otherwise fail during the fork execution.

How it works

  • HTTP 400, 401, 404, 429, or 500 are request, auth, cache, rate-limit, or server problems. They are not revert previews.

  • HTTP 200 with result.status: "Success" is a successful dry-run against current state.

  • HTTP 200 with result.status: "Error" is a successful dry-run that predicts failure. Read result.error.

  • Documented error types include CallFailed, CallReverted, DecodeError, and ProviderError.

  • Fix the calldata or setup, then simulate again. Validate only a transaction you still intend to sign after a "Success" result.

How Enso does this

Error Handling states that a 200 from /simulate does not always mean the transaction would succeed, and tells you to check result.status. See also Simulating Transactions.

FAQ

Should my app treat HTTP 200 as a green quote?

No. Treat "Success" as the green path. Surface result.error when status is "Error".

Is this the same as a failed Route quote?

No. This is Quoter’s fork result for calldata you already have. A Route error means Enso could not build or return a path.

Related articles

  • How do I check if a transaction will revert?

  • What does CallReverted mean in a Quoter simulation?

  • What does CallFailed mean in a Quoter simulation?

  • What does DecodeError mean in a Quoter simulation?

  • What does ProviderError mean in a Quoter simulation?

Sources

Did this answer your question?