Lines Matching refs:status

204 /* returns an appropriate HTTP status code given an APR status code for a
338 apr_status_t status;
351 if ((status = apr_file_perms_set(dst, perms)) != APR_SUCCESS) {
352 return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
363 if ((status = apr_file_open(&inf, src, APR_READ | APR_BINARY,
366 return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
371 status = apr_file_open(&outf, dst, APR_WRITE | APR_CREATE | APR_TRUNCATE
373 if (status != APR_SUCCESS) {
376 return dav_new_error(p, MAP_IO2HTTP(status), 0, status,
383 status = apr_file_read(inf, pbuf->buf, &len);
384 if (status != APR_SUCCESS && status != APR_EOF) {
402 return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
406 if (status == APR_EOF)
410 status = apr_file_write_full(outf, pbuf->buf, len, NULL);
411 if (status != APR_SUCCESS) {
428 return dav_new_error(p, MAP_IO2HTTP(status), 0, status,
436 if (is_move && (status = apr_file_remove(src, p)) != APR_SUCCESS) {
440 if (APR_STATUS_IS_ENOENT(status)) {
445 err = dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
463 err = dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
602 err->status = HTTP_INTERNAL_SERVER_ERROR;
619 apr_status_t status;
634 if ((status = apr_file_remove(pathname, p)) != APR_SUCCESS
635 && !APR_STATUS_IS_ENOENT(status)) {
636 return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
648 if ((status = apr_file_remove(pathname, p)) != APR_SUCCESS
649 && !APR_STATUS_IS_ENOENT(status)) {
651 return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
1006 apr_status_t status;
1008 status = apr_file_write_full(stream->f, buf, bufsize, NULL);
1009 if (APR_STATUS_IS_ENOSPC(status)) {
1010 return dav_new_error(stream->p, HTTP_INSUFFICIENT_STORAGE, 0, status,
1014 else if (status != APR_SUCCESS) {
1016 return dav_new_error(stream->p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
1025 apr_status_t status;
1027 if ((status = apr_file_seek(stream->f, APR_SET, &abs_pos))
1032 return dav_new_error(stream->p, HTTP_INTERNAL_SERVER_ERROR, 0, status,
1077 apr_status_t status;
1093 if ((status = apr_file_open(&fd, resource->info->pathname,
1096 return dav_new_error(pool, HTTP_FORBIDDEN, 0, status,
1107 if ((status = ap_pass_brigade(output, bb)) != APR_SUCCESS) {
1108 return dav_new_error(pool, AP_FILTER_ERROR, 0, status,
1121 apr_status_t status;
1123 status = apr_dir_make(ctx->pathname, APR_OS_DEFAULT, ctx->pool);
1124 if (APR_STATUS_IS_ENOSPC(status)) {
1125 return dav_new_error(ctx->pool, HTTP_INSUFFICIENT_STORAGE, 0, status,
1129 else if (APR_STATUS_IS_ENOENT(status)) {
1130 return dav_new_error(ctx->pool, HTTP_CONFLICT, 0, status,
1134 else if (status != APR_SUCCESS) {
1136 return dav_new_error(ctx->pool, HTTP_FORBIDDEN, 0, status,
1150 apr_status_t status;
1166 if ((status = apr_dir_make(dstinfo->pathname, APR_OS_DEFAULT,
1170 err = dav_new_error(ctx->pool, HTTP_FORBIDDEN, 0, status, NULL);
1196 && !ap_is_HTTP_SERVER_ERROR(err->status)
1200 dav_add_response(wres, err->status, NULL);
1432 apr_status_t status;
1473 if ((status = apr_file_remove(info->pathname, info->pool)) != APR_SUCCESS) {
1475 return dav_new_error(info->pool, HTTP_FORBIDDEN, 0, status, NULL);
1493 apr_status_t status;
1535 if ((status = apr_dir_open(&dirp, fsctx->path1.buf, pool)) != APR_SUCCESS) {
1537 return dav_new_error(pool, HTTP_NOT_FOUND, 0, status, NULL);
1572 status = apr_stat(&fsctx->info1.finfo, fsctx->path1.buf,
1574 if (status != APR_SUCCESS && status != APR_INCOMPLETE) {
1577 err = dav_new_error(pool, HTTP_NOT_FOUND, 0, status, NULL);
2104 apr_status_t status;
2118 if ((status = apr_file_perms_set(resource->info->pathname, perms))
2121 HTTP_INTERNAL_SERVER_ERROR, 0, status,
2147 apr_status_t status;
2156 if ((status = apr_file_perms_set(resource->info->pathname, perms))
2159 HTTP_INTERNAL_SERVER_ERROR, 0, status,