Fix a error exception code

403 should be representative of HTTPForbidden ,not
HTTPUnauthorized, it should be a paste error

Change-Id: I1e20f88de57f1338eb3fdb76eb6368fc752645a9
This commit is contained in:
jiansong 2018-01-22 19:38:11 -08:00
parent 7232a2b857
commit 6770f99f47

View File

@ -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,
}