Skip to main content

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

CodeMessageDescription
400Bad RequestThe request was invalid.
401UnauthorizedOne or more security requirements were not met, such as incorrect API key, invalid token, or missing authentication.
403ForbiddenThe 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.
404Not FoundThe requested resource couldn't be found.
429Too Many RequestsThe request was refused due to rate limiting.
500Internal Server ErrorThe server encountered an unexpected condition that prevented it from fulfilling the request. If you encounter this error, send an email to developersupport@skymavis.com.
503Service UnavailableThe 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

CodeMessageDescription
-32700Parse errorInvalid JSON format.
-32600Invalid requestJSON is not a valid request object.
-32601Method not foundSpecified method doesn't exist.
-32602Invalid paramsParameters don't match method requirements.
-32603Internal errorAn internal JSON-RPC error occurred. If you encounter this error, send an email to developersupport@skymavis.com.
-32608Request timeoutThe request took too long to process.
-32609Request cancelledThe request was cancelled.
-32000Server errorReserved 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"
}
}