Thanks to visit codestin.com
Credit goes to docs.tatum.io

Error Codes

Learn how the Tatum RPC handles errors using JSON-RPC 2.0 and custom error codes that identify validation issues, rate limits, and upstream node failures.

The Tatum RPC Gateway follows the JSON-RPC 2.0 specification

When a request fails, the Gateway returns structured error codes that help determine whether the issue originates from:

  • the client request,
  • the Gateway middleware, or
  • the upstream blockchain node.

Tatum Gateway Error Codes

Tatum extends the JSON-RPC standard with custom error codes to clearly distinguish between validation issues, rate limits, middleware failures, and upstream node problems.

CodeMessageDescription
-16401Invalid RequestThe request format or structure was invalid. Verify JSON syntax and required fields.
-16402Invalid JSON-RPC requestItemOne or more items in a batch request failed validation.
-16405Method not found: #The requested RPC method is not supported or not enabled for the selected blockchain.
-16412Number of transactions exceeds limit of #
Requested range is over limit of #
The request payload failed validation due to exceeding permitted limits.
-16429Too many requests to upstreamYou have exceeded your rate limit. Reduce the request frequency or upgrade your plan.
-16500Invalid response from upstreamThe upstream node returned a malformed or unexpected response.
-16502Invalid upstream response bodyThe upstream node’s response body was incomplete, missing fields, or not parsable.
-16503No healthy upstream availableNo healthy node was available to serve the request. The Gateway could not route the call.
-16504Internal errorInternal middleware or infrastructure failure. Retry or check Tatum Status.

Standard JSON-RPC Error Codes

CodeMessageDescription
-32700Parse errorInvalid JSON was received by the server.
-32600Invalid RequestThe JSON sent is not a valid Request object.
-32601Method not foundThe method does not exist or is not available.
-32602Invalid paramsInvalid method parameters.
-32603Internal errorInternal JSON-RPC error.
-32000 to -32099Server errorReserved for implementation-defined server errors.