class HTTPError(Exception):
Known subclasses: httpx.HTTPStatusError
, httpx.RequestError
Base class for RequestError
and HTTPStatusError
.
Useful for try...except
blocks when issuing a request,
and then calling .raise_for_status()
.
For example:
``` try:
response = httpx.get("https://www.example.com") response.raise_for_status()
Method | __init__ |
Undocumented |
httpx.HTTPStatusError
, httpx.RequestError
Undocumented
Parameters | |
message:str | Undocumented |