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.


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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:42 UTC