Skip to content

Commit

Permalink
Fix 401 status response
Browse files Browse the repository at this point in the history
Fixes Bug1153718

Change-Id: I18adefdc9cf6cadee6006e9352e872dfb4de7e1d
  • Loading branch information
spzala committed Apr 5, 2013
1 parent 31c6cd8 commit b033538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keystone/exception.py
Expand Up @@ -111,7 +111,7 @@ def _build_message(self, message, **kwargs):
class Unauthorized(SecurityError):
"""The request you have made requires authentication."""
code = 401
title = 'Not Authorized'
title = 'Unauthorized'


class AuthPluginException(Unauthorized):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_s3_token_middleware.py
Expand Up @@ -159,7 +159,7 @@ def request(self, method, path, **kwargs):
ret = {"error":
{"message": "EC2 access key not found.",
"code": 401,
"title": "Not Authorized"}}
"title": "Unauthorized"}}
body = jsonutils.dumps(ret)
self.status = 403
self.resp = FakeHTTPResponse(self.status, body)
Expand Down

0 comments on commit b033538

Please sign in to comment.