# raise_file_http_error

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_helpers/raise_file_http_error)

Map a file-operation HTTP error, including the non-JSON 416.

## Signature

```python
raise_file_http_error(
    error: httpx.HTTPStatusError,
    *,
    path: str,
    sandbox_name: str,
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/15468f97c18467d67ececb90b17107b0875e7a65/python/langsmith/sandbox/_helpers.py#L162)