[openstack-dev] [api] Changing 403 Forbidden to 400 Bad Request for OverQuota was: [nova] Which error code should we return when OverQuota

Everett Toews everett.toews at RACKSPACE.COM
Wed May 6 22:25:57 UTC 2015


On May 6, 2015, at 1:58 PM, David Kranz <dkranz at redhat.com<mailto:dkranz at redhat.com>> wrote:

+1
The basic problem is we are trying to fit a square (generic api) peg in a round (HTTP request/response) hole.
But if we do say we are recognizing "sub-error-codes", it might be good to actually give them numbers somewhere in the response (maybe an error code header) rather than relying on string matching to determine the real error. String matching is fragile and has icky i18n implications.

There is an effort underway around defining such "sub-error-codes” [1]. Those error codes would be surfaced in the REST API here [2]. Naturally feedback is welcome.

Everett


[1] https://review.openstack.org/#/c/167793/
[2] https://review.openstack.org/#/c/167793/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150506/6cd408c4/attachment.html>


More information about the OpenStack-dev mailing list