---
sidebar:
  label: roboto.exceptions.http
  order: 1
title: roboto.exceptions.http
---
## Module Contents

### ClientError

```python
exception roboto.exceptions.http.ClientError(exc: urllib.error.HTTPError)
```

`from roboto.exceptions import ClientError`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/exceptions/http.py#L52-L53)

Bases: [`HttpError`](/reference/python-sdk/roboto/exceptions/http#roboto.exceptions.http.HttpError)

Common base class for all non-exit exceptions.

**Parameters**

- **exc** (`urllib.error.HTTPError`)

### HttpError

```python
exception roboto.exceptions.http.HttpError(exc: urllib.error.HTTPError)
```

`from roboto.exceptions import HttpError`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/exceptions/http.py#L13-L49)

Bases: `Exception`

Common base class for all non-exit exceptions.

**Parameters**

- **exc** (`urllib.error.HTTPError`)

**Properties**

- **HttpError.headers** (`dict`)
- **HttpError.msg** (`Any`)
- **HttpError.status** (`http.HTTPStatus | None`): Return type: `Optional[http.HTTPStatus]`

### ServerError

```python
exception roboto.exceptions.http.ServerError(exc: urllib.error.HTTPError)
```

`from roboto.exceptions import ServerError`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/exceptions/http.py#L56-L57)

Bases: [`HttpError`](/reference/python-sdk/roboto/exceptions/http#roboto.exceptions.http.HttpError)

Common base class for all non-exit exceptions.

**Parameters**

- **exc** (`urllib.error.HTTPError`)
