Error codes
Overview
This page provides a list of possible error codes returned by Sky Mavis APIs. The error codes are divided into two categories: HTTP error codes and RPC error codes.
HTTP error codes
Code | Message | Description |
---|---|---|
400 | Bad Request | The request was invalid. |
401 | Unauthorized | One or more security requirements were not met, such as incorrect API key, invalid token, or missing authentication. |
403 | Forbidden | The request is valid, but the server is refusing to respond to it. For example, you may not have the necessary permission to access the service in the Developer Console. For more information, see Request access to services. |
404 | Not Found | The requested resource couldn't be found. |
429 | Too Many Requests | The request was refused due to rate limiting. |
500 | Internal Server Error | The server encountered an unexpected condition that prevented it from fulfilling the request. If you encounter this error, send an email to developersupport@skymavis.com. |
503 | Service Unavailable | The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. If you encounter this error, try again later. |
Example:
{
"errorCode": 404,
"message": "Not Found"
}
RPC error codes
Code | Message | Description |
---|---|---|
-32700 | Parse error | Invalid JSON format. |
-32600 | Invalid request | JSON is not a valid request object. |
-32601 | Method not found | Specified method doesn't exist. |
-32602 | Invalid params | Parameters don't match method requirements. |
-32603 | Internal error | An internal JSON-RPC error occurred. If you encounter this error, send an email to developersupport@skymavis.com. |
-32608 | Request timeout | The request took too long to process. |
-32609 | Request cancelled | The request was cancelled. |
-32000 | Server error | Reserved for implementation-defined server errors. |
Example:
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "the method eth_getLogss does not exist/is not available"
}
}
Was this helpful?
Happy React is loading...