# parse_validation_error

> **Function** in `langsmith`

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

Parse Pydantic validation error response.

Returns a list of validation error details, each containing:
- loc: Location of the error (e.g., ["body", "resources", "cpu"])
- msg: Human-readable error message
- type: Error type (e.g., "value_error")

## Signature

```python
parse_validation_error(
    error: httpx.HTTPStatusError,
) -> list[dict]
```

---

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