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:
parent
81487bab3e
commit
87d99aed87
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue