Fix litmus warning: According to RFC2518, COPY to non-existant collection
authorStefan Fritsch <sf@apache.org>
Mon, 9 Nov 2009 14:10:31 +0000 (14:10 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 9 Nov 2009 14:10:31 +0000 (14:10 +0000)
should give 409 CONFLICT.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834073 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/repos.c

index efb01ac3c687b5b67f51cd1b748b30398d59ff3f..cbcea9b567e92dc1003050e7d581c794cd4fc31e 100644 (file)
@@ -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 */