# HostBackendError

> **Class** in `langgraph_cli`

📖 [View in docs](https://reference.langchain.com/python/langgraph-cli/host_backend/HostBackendError)

Raised when the host backend returns an error response.

## Signature

```python
HostBackendError(
    self,
    message: str,
    status_code: int | None = None,
)
```

## Extends

- `click.ClickException`

## Constructors

```python
__init__(
    self,
    message: str,
    status_code: int | None = None,
)
```

| Name | Type |
|------|------|
| `message` | `str` |
| `status_code` | `int \| None` |


## Properties

- `status_code`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/d27d4b2d9895a4aa83170b4aaa135878f99c7fd6/libs/cli/langgraph_cli/host_backend.py#L11)