Merge "Optimize the fault map for EntityNotFound"
This commit is contained in:
commit
f97eeede5e
@ -59,9 +59,7 @@ class FaultWrapper(wsgi.Middleware):
|
|||||||
'EntityNotFound': webob.exc.HTTPNotFound,
|
'EntityNotFound': webob.exc.HTTPNotFound,
|
||||||
'NotFound': webob.exc.HTTPNotFound,
|
'NotFound': webob.exc.HTTPNotFound,
|
||||||
'ResourceActionNotSupported': webob.exc.HTTPBadRequest,
|
'ResourceActionNotSupported': webob.exc.HTTPBadRequest,
|
||||||
'ResourceNotFound': webob.exc.HTTPNotFound,
|
|
||||||
'InvalidGlobalResource': webob.exc.HTTPInternalServerError,
|
'InvalidGlobalResource': webob.exc.HTTPInternalServerError,
|
||||||
'SnapshotNotFound': webob.exc.HTTPNotFound,
|
|
||||||
'ResourceNotAvailable': webob.exc.HTTPNotFound,
|
'ResourceNotAvailable': webob.exc.HTTPNotFound,
|
||||||
'PhysicalResourceNameAmbiguity': webob.exc.HTTPBadRequest,
|
'PhysicalResourceNameAmbiguity': webob.exc.HTTPBadRequest,
|
||||||
'InvalidTenant': webob.exc.HTTPForbidden,
|
'InvalidTenant': webob.exc.HTTPForbidden,
|
||||||
|
Loading…
Reference in New Issue
Block a user