---
title: exceptions
sidebarTitle: exceptions
---
# `fastmcp.utilities.exceptions`
## Functions
### `is_http_status_error`
```python
is_http_status_error(exc: BaseException) -> bool
```
Return whether an exception is an httpx2 or legacy-httpx status error.
### `get_http_status_code`
```python
get_http_status_code(exc: BaseException) -> int | None
```
Return the response status code from a recognized HTTP status error.
### `is_timeout_error`
```python
is_timeout_error(exc: BaseException) -> bool
```
Return whether an exception is an httpx2 or legacy-httpx timeout.
### `is_request_error`
```python
is_request_error(exc: BaseException) -> bool
```
Return whether an exception is an httpx2 or legacy-httpx request error.
### `iter_exc`
```python
iter_exc(group: BaseExceptionGroup)
```
### `get_catch_handlers`
```python
get_catch_handlers() -> Mapping[type[BaseException] | Iterable[type[BaseException]], Callable[[BaseExceptionGroup[Any]], Any]]
```