# AnthropicInvalidRequestError

> **Class** in `langchain_anthropic`

📖 [View in docs](https://reference.langchain.com/python/langchain-anthropic/chat_models/AnthropicInvalidRequestError)

Anthropic bad-request error classified as a LangChain model error.

## Signature

```python
AnthropicInvalidRequestError()
```

## Extends

- `anthropic.BadRequestError`
- `ModelInvalidRequestError`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/d6167c0b0dafb5f3898faa28e01df0b8db5ef76a/libs/partners/anthropic/langchain_anthropic/chat_models.py#L1236)