summaryrefslogtreecommitdiff
path: root/trove/common/wsgi.py
diff options
context:
space:
mode:
authorjiansong <jian.song@easystack.cn>2018-01-22 19:38:11 -0800
committerjiansong <jian.song@easystack.cn>2018-01-22 19:38:11 -0800
commit6770f99f47446cb44cadac5d7973688164e01a3d (patch)
tree66212ba297fb7a31e9e0bf0619d044bc677081b9 /trove/common/wsgi.py
parent7232a2b857a023040d5027850aea3fb2ee8ba495 (diff)
downloadtrove-6770f99f47446cb44cadac5d7973688164e01a3d.tar.gz
Fix a error exception code
403 should be representative of HTTPForbidden ,not HTTPUnauthorized, it should be a paste error Change-Id: I1e20f88de57f1338eb3fdb76eb6368fc752645a9
Diffstat (limited to 'trove/common/wsgi.py')
-rw-r--r--trove/common/wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/common/wsgi.py b/trove/common/wsgi.py
index c63e9bbe..a3bf5994 100644
--- a/trove/common/wsgi.py
+++ b/trove/common/wsgi.py
@@ -453,7 +453,7 @@ class Fault(webob.exc.HTTPException):
code_wrapper = {
400: webob.exc.HTTPBadRequest,
401: webob.exc.HTTPUnauthorized,
- 403: webob.exc.HTTPUnauthorized,
+ 403: webob.exc.HTTPForbidden,
404: webob.exc.HTTPNotFound,
}