# NVIDIARAGServerError

> **Class** in `langchain_nvidia_ai_endpoints`

📖 [View in docs](https://reference.langchain.com/python/langchain-nvidia-ai-endpoints/retrievers/NVIDIARAGServerError)

Raised when the RAG server returns an error response.

Includes the HTTP status code and response body for debugging.

## Signature

```python
NVIDIARAGServerError(
    self,
    message: str,
    status_code: Optional[int] = None,
    body: str = '',
)
```

## Extends

- `NVIDIARAGError`

## Constructors

```python
__init__(
    self,
    message: str,
    status_code: Optional[int] = None,
    body: str = '',
)
```

| Name | Type |
|------|------|
| `message` | `str` |
| `status_code` | `Optional[int]` |
| `body` | `str` |


## Properties

- `status_code`
- `body`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-nvidia/blob/5bfb68d5b10aa0330a6b79a36375b9bc0c6acef7/libs/ai-endpoints/langchain_nvidia_ai_endpoints/retrievers.py#L46)