# HTTP Response

#### HTTP Response

**400 BAD REQUEST**

**Error: Missing required values for the keys.**\
Method: POST\
Status: 400 BAD REQUEST\
Body:

```json
jsonCopyEdit{
  "key": [
    "This field is required."
  ]
}
```

**Error: Incorrect value provided for the key.**\
Example: Passing 'en23' instead of 'en' in the 'language' key.\
Method: POST\
Status: 400 BAD REQUEST\
Body:

```json
jsonCopyEdit{
  "key": [
    "A valid {type} is required."
  ]
}
```

**Error: Incorrect format of the value.**\
Occurs when the value provided is not of the correct type.\
Method: POST\
Status: 400 BAD REQUEST\
Body:

```json
jsonCopyEdit{
  "key": [
    "\"{value}\" is not a valid {choices}."
  ]
}
```

**401 UNAUTHORIZED**

**Error: Missing access token.**\
No access token provided.\
Authorization type: Bearer Token\
Method: GET, POST, DELETE, PUT\
Status: 401 UNAUTHORIZED\
Body:

```json
jsonCopyEdit{
  "detail": "Authentication credentials were not provided."
}
```

**Error: Invalid token format.**\
Occurs when there is a mistake in the token (e.g., missing or incorrect characters).\
Authorization type: Bearer Token\
Method: GET, POST, DELETE, PUT\
Status: 401 UNAUTHORIZED\
Body:

```json
jsonCopyEdit{
  "detail": "Error decoding signature."
}
```

**404 NOT FOUND**

**Error: Data operation does not exist through the provided ID in the URL path.**\
Example: `/rest-api/phonebook/{id}`\
Method: GET, POST, DELETE, PUT\
Status: 404 NOT FOUND\
Body:

```json
jsonCopyEdit{
  "detail": "Not found."
}
```


---

# 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://docs.antbuddy.us/integration-document-guide/antbot/http-response.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.
