with 409 on missing intermediates:
* modules/dav/fs/repos.c (dav_fs_create_collection): Give a 409 rather
than a 403 if apr_dir_make fails with ENOENT.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102946
13f79535-47bb-0310-9956-
ffa450edef68
"There is not enough storage to create "
"this collection.");
}
+ else if (APR_STATUS_IS_ENOENT(status)) {
+ return dav_new_error(ctx->pool, HTTP_CONFLICT, 0,
+ "Cannot create collection; intermediate "
+ "collection does not exist.");
+ }
else if (status != APR_SUCCESS) {
/* ### refine this error message? */
return dav_new_error(ctx->pool, HTTP_FORBIDDEN, 0,