From: Stefan Fritsch Date: Mon, 9 Nov 2009 14:10:31 +0000 (+0000) Subject: Fix litmus warning: According to RFC2518, COPY to non-existant collection X-Git-Tag: 2.3.3~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69cae4bd3f1b189cb9ac24a40b8f42c553b41e89;p=apache Fix litmus warning: According to RFC2518, COPY to non-existant collection should give 409 CONFLICT. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834073 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index efb01ac3c6..cbcea9b567 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -204,6 +204,7 @@ struct dav_stream { /* returns an appropriate HTTP status code given an APR status code for a * failed I/O operation. ### use something besides 500? */ #define MAP_IO2HTTP(e) (APR_STATUS_IS_ENOSPC(e) ? HTTP_INSUFFICIENT_STORAGE : \ + APR_STATUS_IS_ENOENT(e) ? HTTP_CONFLICT : \ HTTP_INTERNAL_SERVER_ERROR) /* forward declaration for internal treewalkers */