From 21970153864d541af243d7adba3eb4510cbdfd5f Mon Sep 17 00:00:00 2001 From: Matus Ferech Date: Sat, 4 May 2019 17:42:55 +0200 Subject: [PATCH] Add `HttpError` --- httpcore/exceptions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/httpcore/exceptions.py b/httpcore/exceptions.py index 55d377e0..ad040132 100644 --- a/httpcore/exceptions.py +++ b/httpcore/exceptions.py @@ -34,6 +34,12 @@ class PoolTimeout(Timeout): # HTTP exceptions... +class HttpError(Exception): + """ + An Http error occurred. + """ + + class ProtocolError(Exception): """ Malformed HTTP. -- 2.47.3