# raise_if_not_ready

> **Function** in `langsmith`

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

Raise ``SandboxNotReadyError`` when the API rejected a proxy-config update.

A proxy config can only be written to a ``ready`` sandbox, and that status
check is the sole source of ``InvalidRequest`` on the update endpoint for the
fields this client sends — a typed error lets callers start the sandbox and
retry instead of matching on status codes.

## Signature

```python
raise_if_not_ready(
    error: httpx.HTTPStatusError,
    name: str,
) -> None
```

---

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