<div dir="ltr">So do we just use whatever name we want instead? Can we use 'referrer'? ;-)</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 5:43 AM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/02/2015 09:07 PM, Everett Toews wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Feb 2, 2015, at 7:24 PM, Sean Dague <<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a><br></span>
<mailto:<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
On 02/02/2015 05:35 PM, Jay Pipes wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
On 01/29/2015 12:41 PM, Sean Dague wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Correct. This actually came up at the Nova mid cycle in a side<br>
conversation with Ironic and Neutron folks.<br>
<br>
HTTP error codes are not sufficiently granular to describe what happens<br>
when a REST service goes wrong, especially if it goes wrong in a way<br>
that would let the client do something other than blindly try the same<br>
request, or fail.<br>
<br>
Having a standard json error payload would be really nice.<br>
<br>
{<br>
     fault: ComputeFeatureUnsupportedOnIns<u></u>tanceType,<br>
     messsage: "This compute feature is not supported on this kind of<br>
instance type. If you need this feature please use a different instance<br>
type. See your cloud provider for options."<br>
}<br>
<br>
That would let us surface more specific errors.<br>
</blockquote>
<snip><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Standardization here from the API WG would be really great.<br>
</blockquote>
<br>
What about having a separate HTTP header that indicates the "OpenStack<br>
Error Code", along with a generated URI for finding more information<br>
about the error?<br>
<br>
Something like:<br>
<br>
X-OpenStack-Error-Code: 1234<br>
X-OpenStack-Error-Help-URI: <a href="http://errors.openstack.org/1234" target="_blank">http://errors.openstack.org/<u></u>1234</a><br>
<br>
That way is completely backwards compatible (since we wouldn't be<br>
changing response payloads) and we could handle i18n entirely via the<br>
HTTP help service running on <a href="http://errors.openstack.org" target="_blank">errors.openstack.org</a><br></div></div>
<<a href="http://errors.openstack.org" target="_blank">http://errors.openstack.org</a>>.<br>
</blockquote><span class="">
<br>
That could definitely be implemented in the short term, but if we're<br>
talking about API WG long term evolution, I'm not sure why a standard<br>
error payload body wouldn't be better.<br>
</span></blockquote><span class="">
<br>
Agreed. And using the “X-“ prefix in headers has been deprecated for<br>
over 2 years now [1]. I don’t think we should be using it for new things.<br>
<br>
Everett<br>
<br>
[1] <a href="https://tools.ietf.org/html/rfc6648" target="_blank">https://tools.ietf.org/html/<u></u>rfc6648</a><br>
</span></blockquote>
<br>
Ha! Good to know about the X- stuff :) Duly noted!<div class="HOEnZb"><div class="h5"><br>
<br>
-jay<br>
<br>
______________________________<u></u>______________________________<u></u>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.<u></u>openstack.org?subject:<u></u>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Kevin Benton</div></div>
</div>