Requests & Error Codes
API requests and error codes.
All requests and responses are application/json content type and follow typical HTTP response status codes for success and failure.
Success
A successful response is indicated by HTTP status code 200 and may contain an optional body. If the response has a body it will be documented.
Errors
Response
{
"message": "Exchange Not Found"
}Unless otherwise stated, errors to bad requests will respond with HTTP 4xx or status codes. The body will also contain a message parameter indicating the cause. Your language’s http library should be configured to provide message bodies for non-2xx requests so that you can read the message field from the body.
Common Error Codes
| Status Code | Reason |
|---|---|
| 400 | Bad Request — Invalid request format |
| 401 | Unauthorized — Invalid API Key |
| 402 | Maximum API Query Limit |
| 403 | Forbidden — You do not have access to the requested resource |
| 404 | Not Found |
| 405 | Exchange Data Unavailable |
| 500 | Internal Server Error — We had a problem with our server |