Lines Matching refs:status
293 static int http_status_set_error (request_st * const r, int status) { in http_status_set_error() argument
294 return http_status_set_fin(r, status); in http_status_set_error()
863 webdav_xml_status (buffer * const b, const int status) in webdav_xml_status() argument
867 http_status_append(b, status); in webdav_xml_status()
877 const uint32_t len, const int status) in webdav_xml_propstat_protected() argument
885 webdav_xml_status(b, status); /* 403 */ in webdav_xml_propstat_protected()
896 const char * const name, const int status) in webdav_xml_propstat_status() argument
908 webdav_xml_status(b, status); in webdav_xml_propstat_status()
916 webdav_xml_propstat (buffer * const b, buffer * const value, const int status) in webdav_xml_propstat() argument
923 webdav_xml_status(b, status); in webdav_xml_propstat()
933 const int status) in webdav_xml_response_status() argument
939 webdav_xml_status(b, status); in webdav_xml_response_status()
1547 int status = -1; /* if lock does not exist */ in webdav_lock_match() local
1559 status = 0; /* success; lock match */ in webdav_lock_match()
1562 status = -3; /* not lock owner; not authorized */ in webdav_lock_match()
1566 status = -2; /* URI is not in scope of lock */ in webdav_lock_match()
1577 return status; in webdav_lock_match()
1711 int status = 1; in webdav_lock_delete_uri() local
1713 status = 0; in webdav_lock_delete_uri()
1723 return status; in webdav_lock_delete_uri()
1752 int status = 1; in webdav_lock_delete_uri_col() local
1754 status = 0; in webdav_lock_delete_uri_col()
1764 return status; in webdav_lock_delete_uri_col()
1817 int status = 1; in webdav_lock_acquire() local
1819 status = 0; in webdav_lock_acquire()
1829 return status; in webdav_lock_acquire()
1849 int status = 1; in webdav_lock_refresh() local
1851 status = 0; in webdav_lock_refresh()
1863 return status; in webdav_lock_refresh()
1882 int status = 0; in webdav_lock_release() local
1884 status = (0 != sqlite3_changes(pconf->sql->sqlh)); in webdav_lock_release()
1895 return status; in webdav_lock_release()
2572 int status = in webdav_delete_dir() local
2574 if (0 != status) { in webdav_delete_dir()
2575 webdav_xml_response_status(r, &dst->rel_path, status); in webdav_delete_dir()
2974 int status = webdav_copytmp_rename(pconf, src, dst, flags); in webdav_copymove_file() local
2975 if (0 == status) { in webdav_copymove_file()
2981 return status; in webdav_copymove_file()
3018 int status; in webdav_mkdir() local
3020 status = lstat(dst->path.ptr, &st); in webdav_mkdir()
3022 if (0 != status) /* still ENOTDIR or *just* disappeared */ in webdav_mkdir()
3033 status = webdav_delete_file(pconf, dst); in webdav_mkdir()
3036 if (0 != status) in webdav_mkdir()
3037 return status; in webdav_mkdir()
3097 int status; in webdav_copymove_dir() local
3145 status = lstat(dst->path.ptr, &st); in webdav_copymove_dir()
3147 if (0 == status) { in webdav_copymove_dir()
3159 status = webdav_delete_file(pconf, dst); in webdav_copymove_dir()
3162 if (0 != status) { in webdav_copymove_dir()
3163 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()
3164 return status; in webdav_copymove_dir()
3193 if (0 != (status = webdav_mkdir(pconf, dst, overwrite))) { in webdav_copymove_dir()
3194 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()
3195 return status; in webdav_copymove_dir()
3274 status = webdav_copymove_dir(pconf, src, dst, r, flags); in webdav_copymove_dir()
3275 if (0 != status) in webdav_copymove_dir()
3279 status = webdav_copymove_file(pconf, src, dst, &flags); in webdav_copymove_dir()
3280 if (0 != status) in webdav_copymove_dir()
3281 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()
3292 status = 0; in webdav_copymove_dir()
3300 if (507 == status) { in webdav_copymove_dir()
3309 status = webdav_delete_dir(pconf, src, r, flags); /* content */ in webdav_copymove_dir()
3310 if (0 != status) { in webdav_copymove_dir()
3311 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()
4407 const int status = webdav_mkdir(pconf, &r->physical, -1); in mod_webdav_mkcol() local
4408 if (0 == status) in mod_webdav_mkcol()
4411 http_status_set_error(r, status); in mod_webdav_mkcol()
4491 const int status = webdav_delete_file(pconf, &r->physical); in mod_webdav_delete() local
4492 if (0 == status) { in mod_webdav_delete()
4497 http_status_set_error(r, status); in mod_webdav_delete()
5256 int status; in mod_webdav_copymove_b() local
5259 status = 204; /* No Content */ in mod_webdav_copymove_b()
5261 status = webdav_mkdir(pconf, dst, 1); in mod_webdav_copymove_b()
5262 if (0 == status) status = 204; /* No Content */ in mod_webdav_copymove_b()
5265 status = 412; /* Precondition Failed */ in mod_webdav_copymove_b()
5268 status = webdav_mkdir(pconf, dst, in mod_webdav_copymove_b()
5270 if (0 == status) status = 201; /* Created */ in mod_webdav_copymove_b()
5273 status = 403; /* Forbidden */ in mod_webdav_copymove_b()
5274 if (status < 300) { in mod_webdav_copymove_b()
5275 http_status_set_fin(r, status); in mod_webdav_copymove_b()
5280 http_status_set_error(r, status); in mod_webdav_copymove_b()