durusmail: quixote-users: allowing an empty body
allowing an empty body
2003-09-03
2003-09-03
2003-09-03
2003-09-03
2003-09-03
allowing an empty body
John Belmonte
2003-09-03
A.M. Kuchling wrote:
> There's an HTTP response code, 204 No Content, which should be used in
> such case.  Quixote could allow None if the status is 204, and signal
> an error if content was in fact returned.  I'll work up a patch.

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
other responses may have an empty body as well.  I beleive 204 exists
only for when there is no other suitable response and you want to convey
some headers to the client.

-John



--
http:// if   l .o  /


reply