# handle_sandbox_creation_error

> **Function** in `langsmith`

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

Handle HTTP errors specific to sandbox creation.

Maps API error responses to specific exception types:
- 408: ResourceTimeoutError (sandbox didn't become ready in time)
- 422: ValidationError (bad input) or ResourceCreationError (runtime)
- 429: QuotaExceededError (org limits exceeded)
- 503: ResourceCreationError (no resources available)
- Other: Falls through to generic error handling

## Signature

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

---

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