Skip to main content

fastmcp.utilities.exceptions

Functions

is_http_status_error

Return whether an exception is an httpx2 or legacy-httpx status error.

get_http_status_code

Return the response status code from a recognized HTTP status error.

is_timeout_error

Return whether an exception is an httpx2 or legacy-httpx timeout.

is_request_error

Return whether an exception is an httpx2 or legacy-httpx request error.

iter_exc

get_catch_handlers