# Status and Error Codes

The CryptoQuant API uses standard HTTP status codes to indicate success or failure. 200 represents success, 4xx represents a user error (such as a problem with your key), and 5xx represents a problem with our API.

The following table describes status and error codes returned by API. In the status object, the `code` field contains the status code and the `message` field contains the type of response.

| Code  | Type                    | Description                                                                                                                       |
| ----- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `200` | `success`               | Request was successful.                                                                                                           |
| `200` | `deprecated`            | A resource is deprecated and will be removed in the future.                                                                       |
| `400` | `bad_request`           | Some required parameter is missing or has the wrong value.                                                                        |
| `401` | `unauthorized`          | Internal authorization failed. It might mean missing or wrong credentials.                                                        |
| `403` | `forbidden`             | It means you don't have an access to the requested endpoint.                                                                      |
| `404` | `not_found`             | URI is not valid or the resource ID does not correspond to an existing resource.                                                  |
| `405` | `not_allowed`           | HTTP method not allowed, such as attempting to use a POST request with an endpoint that only accepts GET requests, or vice versa. |
| `429` | `too_many_requests`     | It indicates the user has sent too many requests in a given amount of time.                                                       |
| `500` | `internal_server_error` | Unexpected error occurred. Please report this when you see it.                                                                    |
