W3C home > Mailing lists > Public > ietf-dav-versioning@w3.org > July to September 2004

Re: succeed code for DELETE

From: Geoffrey M Clemm <geoffrey.clemm@us.ibm.com>
Date: Tue, 14 Sep 2004 13:08:24 -0400
To: "'ietf-dav-versioning@w3.org'" <ietf-dav-versioning@w3.org>
Message-ID: <OFE9DD159D.42458221-ON85256F0F.005DB70C-85256F0F.005E27A8@us.ibm.com>
I assume you meant "2518", not "2158".

What in 2518 made you think 204 was the "default" success code
for DELETE?  In particular, the definition of DELETE in 2518
(which is a copy of the definition from 2616) states:

"A successful response SHOULD be 200 (OK) if the response includes
an entity describing the status, 202 (Accepted)
if the action has not yet been enacted, or 204 (No Content)
if the action has been enacted but the response does not
include an entity."

So you would use 200 or 202 if you wanted to include a body.


Girish wrote on 09/14/2004 10:42:32 AM:

> Hi,
> Can a successful DELETE (in my case, deletion of a version-history) 
> return some content (some href, for example) to the client? 
> RFC 2158 states that 204 (no content) is the default success code 
> for DELETE.  I was wondering if there are special deltaV semantics.
> Thanks,
> Girish
Received on Tuesday, 14 September 2004 17:09:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:55:48 UTC