W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > April to June 2007

Re: correct response code to BIND / REBIND when source is not found?

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 14 May 2007 20:18:46 +0200
Message-ID: <4648A806.7020900@gmx.de>
To: Tim Olsen <tolsen718@gmail.com>
CC: WebDAV <w3c-dist-auth@w3.org>

Tim Olsen wrote:
> Hello,
> In the case of a BIND or REBIND, what is the correct response code
> when the resource specified in the href element is not found?
> (preconditions DAV:bind-source-exists and DAV:rebind-source-exists.)
> I figure since it's not the Request-URI, the response should not be
> 404.  I see two options: a 207 Multistatus with an inner status of 404


> on the href, or a 409 Conflict.  Any idea which, or if it's a totally
> different response code?

First of all, I'd say it's not multistatus.

Then, I think the RFC3253 language on pre/post condition handling 
favorizes 409 (conflict) over 403 (forbidden), as after changing the 
state of some resources, the request could succeed.


HTTP/1.1 409 Conflict
Content-Type: application/xml

<error xmlns="DAV:">

Best regards, Julian
Received on Monday, 14 May 2007 18:19:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:41 UTC