<div dir="ltr">Can you give an example of an Object HEAD request returning 204? I tried a HEAD of an object with a body and also a HEAD of an object of length 0 and I seem to get 200's...<div><br></div><div>Container's and accounts are a little more interesting story... [2]</div><div><br></div><div>-Clay</div><div><br></div><div>2. <a href="https://review.openstack.org/#/c/32647/">https://review.openstack.org/#/c/32647/</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 6, 2015 at 5:40 PM, Ouchi, Atsuo <span dir="ltr"><<a href="mailto:ouchi.atsuo@jp.fujitsu.com" target="_blank">ouchi.atsuo@jp.fujitsu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Swift developers,<br>
<br>
I would like to ask you on a Swift API specification.<br>
<br>
Swift returns 204 status code to a valid HEAD Object request with a Content-Length header,<br>
whereas the latest HTTP/1.1 specification (RFC7230) states that you must not send<br>
the header with a 204 status code.<br>
<br>
> 3.3.2. Content-Length<br>
(snip)<br>
> A server MUST NOT send a Content-Length header field in any response<br>
> with a status code of 1xx (Informational) or 204 (No Content). A<br>
> server MUST NOT send a Content-Length header field in any 2xx<br>
> (Successful) response to a CONNECT request (Section 4.3.6 of<br>
> [RFC7231]).<br>
<br>
What I would like to know is, when you designed Swift APIs what was the reasoning<br>
behind choosing 204 status code to HEAD Object, over other status codes such as 200?<br>
<br>
Thanks,<br>
Atsuo<br>
--<br>
Ouchi Atsuo / <a href="mailto:ouchi.atsuo@jp.fujitsu.com">ouchi.atsuo@jp.fujitsu.com</a><br>
tel. 03-6424-6612 / ext. 72-60728968<br>
Service Development Department, Foundation Service Division<br>
Fujitsu Limited<br>
<br>
<br>
__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>