# raise_for_status_with_text

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/utils/utils/raise_for_status_with_text)

Raise an error with the response text.

## Signature

```python
raise_for_status_with_text(
    response: Response,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `response` | `Response` | Yes | The response to check for errors. |

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/a4b4a7b9a6d8b5eb2352e26e110f1b7beffc6f62/libs/core/langchain_core/utils/utils.py#L58)