W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > July to September 2005

Re: Question about XML parsing or validating errors

From: Julian Reschke <julian.reschke@gmx.de>
Date: Sat, 06 Aug 2005 15:26:33 +0200
Message-ID: <42F4BA89.2040002@gmx.de>
To: "Weber, Heiko" <Heiko.Weber@softwareag.com>
CC: w3c-dist-auth@w3.org

Weber, Heiko wrote:
> Iím sure this has already been discussed on this list before, but 
> somehow I could not find anything right away about it.
> Many WebDAV requests require XML in the body for input. Besides the 
> values of the input being incorrect, there might also be more 
> fundamental problems when the input is either not well-formed or does 
> not validate against the schemas describing the input format. How should 
> a WebDAV server respond in the case of such a fundamental error? Is 
> there some DAV:error description for that scenario, or should the server 
> just respond with a 400 or a 422?

Looking at <http://greenbytes.de/tech/webdav/rfc2518.html#STATUS_422>, 
422 seems to be wrong; so you probably should use just 400. There's no 
DAV:error code for this condition (yet) -- our server sends a custom 
code for parsing errors.

> ...

Best regards, Julian
Received on Saturday, 6 August 2005 13:26:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:32 UTC