[openstack-dev] [Cinder] Question about response code of API

Trump.Zhang zhangleiqiang at gmail.com
Tue May 13 16:08:45 UTC 2014


Hi, all:

     I find a lot of methods in cinder.api.contrib.* return 202 code
instead of 200, even when these methods only involve database operation,
which are not async process. For example,
cinder.api.contrib.types_extra_specs.\
VolumeTypeExtraSpecsController:delete, cinder.api.contrib.volume_actions.\
VolumeActionsController:_reserve, etc.

    From the HTTP/1.1 Status Code Definitions [1], 202 means "Accepted",
i.e. the request has been accepted for processing, but the processing has
not been completed.

    Are these response codes are returned by mistake?

-- 
-------------------
Best Regards

Trump.Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140514/33c5e0bb/attachment.html>


More information about the OpenStack-dev mailing list