Merge "Optimize the fault map for EntityNotFound"

This commit is contained in:
Jenkins 2016-01-29 04:34:35 +00:00 committed by Gerrit Code Review
commit f97eeede5e
1 changed files with 0 additions and 2 deletions

View File

@ -59,9 +59,7 @@ class FaultWrapper(wsgi.Middleware):
'EntityNotFound': webob.exc.HTTPNotFound,
'NotFound': webob.exc.HTTPNotFound,
'ResourceActionNotSupported': webob.exc.HTTPBadRequest,
'ResourceNotFound': webob.exc.HTTPNotFound,
'InvalidGlobalResource': webob.exc.HTTPInternalServerError,
'SnapshotNotFound': webob.exc.HTTPNotFound,
'ResourceNotAvailable': webob.exc.HTTPNotFound,
'PhysicalResourceNameAmbiguity': webob.exc.HTTPBadRequest,
'InvalidTenant': webob.exc.HTTPForbidden,