From b033538ec7a35161809766b262e34029a84893e1 Mon Sep 17 00:00:00 2001 From: Sahdev Zala Date: Fri, 5 Apr 2013 11:23:44 -0500 Subject: [PATCH] Fix 401 status response Fixes Bug1153718 Change-Id: I18adefdc9cf6cadee6006e9352e872dfb4de7e1d --- keystone/exception.py | 2 +- tests/test_s3_token_middleware.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keystone/exception.py b/keystone/exception.py index bbf4c58f0e..eaacfcf022 100644 --- a/keystone/exception.py +++ b/keystone/exception.py @@ -111,7 +111,7 @@ class SecurityError(Error): class Unauthorized(SecurityError): """The request you have made requires authentication.""" code = 401 - title = 'Not Authorized' + title = 'Unauthorized' class AuthPluginException(Unauthorized): diff --git a/tests/test_s3_token_middleware.py b/tests/test_s3_token_middleware.py index eb1ceaf419..c4d56dc935 100644 --- a/tests/test_s3_token_middleware.py +++ b/tests/test_s3_token_middleware.py @@ -159,7 +159,7 @@ class S3TokenMiddlewareTestBad(S3TokenMiddlewareTestBase): 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)