# 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-sdk/blob/791701a304a72495d108669ef11c194983fd0e95/python/langsmith/sandbox/_helpers.py#L94)