[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POST of a media resource, 201 Created status




At 2:54 PM +0100 1/31/08, Julian Reschke wrote:
Brian Smith wrote:

Please see http://lists.w3.org/Archives/Public/ietf-http-wg/2008JanMar/0154.html and http://lists.w3.org/Archives/Public/ietf-http-wg/2008JanMar/0158.html.

There is an assertion there that an HTTP server should only return "201 Created" if one resource is created. RFC 2616's language that describes "201 Created" does use singular language ("*a* new resource"), so I guess that might be correct. If true, then 2616 would effectively require that a POST of a media resource should never result in a 201 status code, because it will create two resources (the media link entry and the media resource).

I think that assertion in incorrect. "a new resource" includes the case where multiple resources are being created.

+1. That's the way I read 2616. If they mean "just one", they need to say "just one".