Errors
REST error codes
For our REST APIs, Sky Mavis uses conventional HTTP response codes to indicate the success of failure of an API request.
In general, here's what the codes indicate:
- Codes in the
2xx
range indicate success. - Codes in the
4xx
range indicate an error that failed given the information provided (for example, a parameter was omitted). - Codes in the
5xx
range indicate an error with Sky Mavis's servers.
Some 4xx
errors include an error code that briefly explains the error occurred.
Error codes are also provided on each API's overview page. For example, Explorer API or Origins API.
JSON-RPC
The Ronin JSON-RPC API returns a special JSON-RPC error object:
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "too many arguments, want at most 0"
}
}
For a list of error codes, see the Errors section in the Ronin JSON-RPC API documentation.
Was this helpful?
Happy React is loading...