# handle_pool_error

> **Function** in `langsmith`

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

Handle HTTP errors specific to pool creation/update.

Maps API error responses to specific exception types:
- 400: ResourceNotFoundError or ValidationError (template has volumes)
- 409: ResourceAlreadyExistsError
- 429: QuotaExceededError (org limits exceeded)
- 504: ResourceTimeoutError (timeout waiting for ready replicas)
- Other: Falls through to generic error handling

## Signature

```python
handle_pool_error(
    error: httpx.HTTPStatusError,
) -> None
```

---

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