NotAcceptable exception should be 406

This is a left task from gerrit review:
https://review.openstack.org/#/c/184975/5/magnum/common/exception.py

The NotAcceptable exception number should be 406 but not 404

Change-Id: I2a85109f4f78e4d334e542579fa911040f0a463e
Closes-Bug: #1463260
This commit is contained in:
Jay Lau (Guangya Liu) 2015-06-09 13:25:30 +08:00
parent 81487bab3e
commit 87d99aed87
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class NotAcceptable(MagnumException):
# TODO(yuntongjin): We need to set response headers
# in the API for this exception
message = _("Request not acceptable.")
code = 404
code = 406
class OperationNotPermitted(NotAuthorized):