summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
Diffstat (limited to 'module/network')
-rw-r--r--module/network/HTTPRequest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index 88f75c828..d8d57e76f 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -21,6 +21,7 @@ import pycurl
from codecs import getincrementaldecoder
from urllib import quote, urlencode
+from httplib import responses
from logging import getLogger
from cStringIO import StringIO
@@ -31,7 +32,7 @@ def myquote(url):
class BadHeader(Exception):
def __init__(self, code, content=""):
- Exception.__init__(self, "Bad server response: %s"% code)
+ Exception.__init__(self, "Bad server response: %s %s"% (code, responses[int(code)]))
self.code = code
self.content = content