> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/questions-answers/errors-description/llm/anthropic.md).

# Anthropic

Ошибки при работе с Anthropic (Claude): некорректные запросы, API-ключи и доступность сервиса.

***

### `ANTHROPIC_400_FILE_INVALID` — не удалось получить файл по ссылке

**Описание:** Некорректный запрос к Anthropic. Не удалось получить файл по указанной ссылке. Проверьте корректность ссылки и повторите попытку.

**Причина:** Ссылка на файл недействительна, устарела или недоступна.

**Решение:** Проверьте корректность ссылки и повторите попытку.

***

### `ANTHROPIC_401_API_KEY_INVALID` — неверный API-ключ Anthropic

**Описание:** Неверный API ключ Anthropic, проверьте правильность введенного ключа в настройках агента

**Причина:** Ключ введён с ошибкой, отозван или недействителен.

**Решение:** Проверьте и переустановите API-ключ в настройках агента.

***

### `ANTHROPIC_UNKNOWN` — неизвестная ошибка Anthropic

**Описание:** Неизвестная ошибка в Anthropic, обратитесь в техподдержку Nextbot.

**Причина:** Ошибка не распознана.

**Решение:** Обратитесь в техподдержку Nextbot с кодом и деталями.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.nextbot.ru/questions-answers/errors-description/llm/anthropic.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
