W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2007

Re: If-match clarification

From: Henrik Nordstrom <henrik@henriknordstrom.net>
Date: Wed, 20 Jun 2007 22:44:28 +0200
To: Cyrus Daboo <cyrus@daboo.name>
Cc: ietf-http-wg@w3.org
Message-Id: <1182372268.4242.22.camel@henriknordstrom.net>
ons 2007-06-20 klockan 11:59 -0400 skrev Cyrus Daboo:

> But what about the case of an etag provided in If-Match against a resource 
> that no longer exists? Should the server return 404 or 412?

404 I would say, at least if it's a GET/HEAD.

Errors is not normally subject to If-* conditions. If-* conditions only
applies when the server actually could generate a successful response if
the condition was not there.

For PUT 412 is probably more appropriate there as it's the condition
which prevented the method from being executed, not the fact that the
resource no longer exists.

Regards
Henrik

Received on Wednesday, 20 June 2007 20:44:38 GMT

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