diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 10:57:32 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 10:57:32 +0200 |
commit | f3a611339148a5a3de141ff1234ec9018ab20896 (patch) | |
tree | 5c53dc5d5eb8a06d1caaed84b04fd137cdbee6a1 /netlib/http/exceptions.py | |
parent | c2832ef72bd4eed485a1c8d4bcb732da69896444 (diff) | |
parent | 6a30ad2ad236fa20d086e271ff962ebc907da027 (diff) | |
download | mitmproxy-f3a611339148a5a3de141ff1234ec9018ab20896.tar.gz mitmproxy-f3a611339148a5a3de141ff1234ec9018ab20896.tar.bz2 mitmproxy-f3a611339148a5a3de141ff1234ec9018ab20896.zip |
Merge pull request #85 from Kriechi/http2-wip
add move tests and code from mitmproxy
Diffstat (limited to 'netlib/http/exceptions.py')
-rw-r--r-- | netlib/http/exceptions.py | 3 |
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" |