diff --git a/httpx/_exceptions.py b/httpx/_exceptions.py index 4d683777..260d14ee 100644 --- a/httpx/_exceptions.py +++ b/httpx/_exceptions.py @@ -55,7 +55,7 @@ class HTTPError(Exception): response = httpx.get("https://www.example.com") response.raise_for_status() except httpx.HTTPError as exc: - print(f"HTTP Exception for {exc.request.url} - {exc.message}") + print(f"HTTP Exception for {exc.request.url} - {exc}") ``` """