Skip to content
masterclass Buddy

HTTPX · Error

RequestError

HTTPX exceptions describe failures while sending requests, using the transport, or handling responses. Catch HTTPError for a broad handler, or use specific subclasses for precise handling.

Last updated

Syntax

class httpx.HTTPError(message)
class httpx.RequestError(message, *, request=None)
class httpx.TimeoutException(message, *, request=None)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • HTTPError
  • RequestError
  • TransportError
  • TimeoutException
  • ConnectTimeout
  • ReadTimeout
  • WriteTimeout
  • PoolTimeout

Source: Exceptions - HTTPX. Checked 2026-11-03.