W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2009

Meaning of Location header in 204 Responses

From: Jan Algermissen <algermissen1971@mac.com>
Date: Tue, 29 Sep 2009 16:19:49 +0200
Message-id: <01E97E4B-3E42-4B6F-A498-80F7922A36CF@mac.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
In [1] Roy writes:

"The HTTP response will tell you what happened as a result. In HTTP, a  
single resource-creating POST action will result in a 201 response  
with another hypertext representation (telling you what happened and  
what can be done next) or 204 response with the Location header field  
indicating the URI of the new resource."

I read that to suggest that the presence of a Location header in a 204  
response indicates resource creation. But I cannot find a confirmation  
in the HTTP spec.

Am I misreading Roy's comment? Or should a client indeed infer the  
creation of a new resource from 204 plus Location header?

Jan


[1] <http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven#comment-720 
 >
Received on Tuesday, 29 September 2009 14:20:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:10 GMT