# HTTP Error and Status Codes

#### Error and Status Messages

Error and Status messages are always returned in a standard JSON format with the status code and message in the body of the response. An example error response:

```json
{
    “code”:”405″,
    ”error”:”Method Not Allowed”
} 
```

Status messages are returned for certain requests that have been accepted but do not return a resource in the response body. Example:

```json
{
    “code”: 304, 
    “error”: “Operation accepted but not yet complete”
}
```

#### Status Codes

| Code | Satus                 | Description                                               |
| ---- | --------------------- | --------------------------------------------------------- |
| 200  | Ok                    | Completed Successfully                                    |
| 304  | Not Modified          | There was no new data to return                           |
| 400  | Bad Request           | The request was invalid or cannot be otherwise served     |
| 401  | Unauthorised          | Authentication failed                                     |
| 403  | Forbidden             | No permission for the HHTP method or requested resource   |
| 404  | Resource not Found    | Requested resource not found                              |
| 405  | Method Not Allowed    | Resource does not support the requested HHTP Method       |
| 413  | Request too large     | Requested time range is greater than maximum 31 day limit |
| 429  | Too Many Requests     | Request has been rejected for exceeding usage limits      |
| 500  | Internal Server Error | Error occurred processing the request                     |
|      |                       |                                                           |
