Send a more appropriate error response for 403 in osapi

* Don't use resizeNotAllowed for 403
 * Fixes bug 949444

Change-Id: Ib2b5acba291a04e0c0296fa5e8438019983dda20
This commit is contained in:
Anthony Young
2012-03-23 09:50:39 -07:00
parent 5c5a5fbaa0
commit 71172ac4bb
2 changed files with 14 additions and 1 deletions

View File

@@ -1022,7 +1022,7 @@ class Fault(webob.exc.HTTPException):
_fault_names = {
400: "badRequest",
401: "unauthorized",
403: "resizeNotAllowed",
403: "forbidden",
404: "itemNotFound",
405: "badMethod",
409: "conflictingRequest",