On Wed, Sep 03, 2003 at 05:29:19PM -0400, John Belmonte wrote:
>I don't think your assumptions are correct, please see the HTTP RFC. As
>my example shows, in this case I want to return "201 Created". Many
That's not clear; the RFC says for 201 "The response SHOULD include an
entity containing a list of resource characteristics and location(s)
from which the user or user agent can choose the one most
appropriate", with the most specific location given in the Location:
header. To me, that implies an HTML/XML body listing locations.
On the other hand, HEAD requests and 304 responses shouldn't have a
body, so you're correct that not only 204s have empty bodies. I
suppose treating None as an error remains the right thing to do.
--amk (www.amk.ca)
OTHELLO: Put out the light, and then put out the light.
-- _Othello_, V, ii