Skip to main content

Error code

Walawong uses promises to return most responses. When implementing the catch function, the SDK provides an error object with the following error types:

Error TypeMeaning
200Successful.
400Bad Request -- Your request is invalid. Usually from a missing or incorrect parameter, or an unsupported function by the connected wallet provider*
401Unauthorized -- Proper credentials were not received.
402Request Failed -- A valid request was made but it failed.
403Forbidden -- You do not have access rights to the requested resource.
404Not Found -- The resource does not exist.
429Too Many Requests -- Too many calls happened in a short period of time.
500Internal Server Error -- This our error and you should note the time and let us know if you receive this.*
  • A user-friendly message should be included with these errors.