[openstack-dev] [nova] Which error code should we return when OverQuota

Alex Xu soulxu at gmail.com
Wed May 6 01:48:26 UTC 2015


>From API-WG guideline, exceed quota should be 403

https://github.com/openstack/api-wg/blob/master/guidelines/http.rst

2015-05-06 3:30 GMT+08:00 Chen CH Ji <jichenjc at cn.ibm.com>:

> In doing patch [1], A suggestion is submitted that we should return 400
> (bad Request) instead of 403 (Forbidden)
> I take a look at [2], seems 400 is not a good candidate because
> *'**The request could not be understood by the server due to malformed
> syntax. The client SHOULD NOT repeat the request without modifications. *
> *'*
>
> may be a 409 (conflict) error if we really don't think 403 is a good one?
> Thanks
>
>
> [1] https://review.openstack.org/#/c/173985/
> [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
>
> Best Regards!
>
> Kevin (Chen) Ji 纪 晨
>
> Engineer, zVM Development, CSTL
> Notes: Chen CH Ji/China/IBM at IBMCN   Internet: jichenjc at cn.ibm.com
> Phone: +86-10-82454158
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
> Beijing 100193, PRC
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150506/6acbda06/attachment.html>


More information about the OpenStack-dev mailing list