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 Type | Meaning |
|---|---|
| 200 | Successful. |
| 400 | Bad Request -- Your request is invalid. Usually from a missing or incorrect parameter, or an unsupported function by the connected wallet provider* |
| 401 | Unauthorized -- Proper credentials were not received. |
| 402 | Request Failed -- A valid request was made but it failed. |
| 403 | Forbidden -- You do not have access rights to the requested resource. |
| 404 | Not Found -- The resource does not exist. |
| 429 | Too Many Requests -- Too many calls happened in a short period of time. |
| 500 | Internal 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.