[openstack-dev] [neutron] [API]Make API errors conform to the common error message without microversion

Ed Leafe ed at leafe.com
Mon Apr 11 14:17:58 UTC 2016


On 04/08/2016 03:23 AM, Xie, Xianshan wrote:
> According to the discussion, a new header would be a good idea to resolve this issue [4], we think.
> For instance:
> curl -X DELETE "http://xxx:9696/v2.0/networks/xxx" -H "Neutron-Common-Error-Format: True" 
> 
> But we haven't decided which header name will be used yet.
> So how do you think which is the best appropriate one?
> A: Neutron-Common-Error-Format
> B: OpenStack-Neutron-Common-Error-Format
> C: other (Could you please specify it? Thanks in advance)
> 
> Any comments would be appreciated.

You should probably follow the guidelines set up by the API Working
Group: https://specs.openstack.org/openstack/api-wg/guidelines/headers.html

In particular, having a header that does just one thing goes against the
spirit of avoiding header proliferation.

-- 

-- Ed Leafe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 925 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160411/88490f94/attachment.pgp>


More information about the OpenStack-dev mailing list