aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/http/exceptions.py')
-rw-r--r--netlib/http/exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/http/exceptions.py b/netlib/http/exceptions.py
index 7cd26c12..987a7908 100644
--- a/netlib/http/exceptions.py
+++ b/netlib/http/exceptions.py
@@ -1,6 +1,8 @@
from netlib import odict
+
class HttpError(Exception):
+
def __init__(self, code, message):
super(HttpError, self).__init__(message)
self.code = code
@@ -11,6 +13,7 @@ class HttpErrorConnClosed(HttpError):
class HttpAuthenticationError(Exception):
+
def __init__(self, auth_headers=None):
super(HttpAuthenticationError, self).__init__(
"Proxy Authentication Required"