# parse_error_response

> **Function** in `langsmith`

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

Parse standardized error response.

Expected format: {"detail": {"error": "...", "message": "..."}}

Returns a dict with:
- error_type: The error type (e.g., "ImagePull", "CrashLoop")
- message: Human-readable error message

## Signature

```python
parse_error_response(
    error: httpx.HTTPStatusError,
) -> dict[str, Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/sandbox/_helpers.py#L221)