diff --git a/arcrest/server.py b/arcrest/server.py index b7aa5a7..610fc58 100644 --- a/arcrest/server.py +++ b/arcrest/server.py @@ -326,8 +326,8 @@ def __init__(self, origin_url, username, password, expiration=60, pass except KeyError: pass - raise urllib2.HTTPError("Could not create token using URL {}" - .format(origin_url)) + raise urllib2.HTTPError(origin_url, 401, "Could not create token using URL {}" + .format(origin_url), None, None) @property def token(self): return self._json_struct['token']