# 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                     |
|      |                       |                                                           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.alphax.cloud/http/http-error-and-status-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
