Lines Matching refs:status
149 long status; in pull_job_curl_on_finished() local
151 code = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &status); in pull_job_curl_on_finished()
157 if (status == 304) { in pull_job_curl_on_finished()
162 } else if (status >= 300) { in pull_job_curl_on_finished()
164 if (status == 404 && j->on_not_found) { in pull_job_curl_on_finished()
179 … code = curl_easy_getinfo(j->curl, CURLINFO_RESPONSE_CODE, &status); in pull_job_curl_on_finished()
185 if (status == 0) in pull_job_curl_on_finished()
191 …status == 404 ? SYNTHETIC_ERRNO(ENOMEDIUM) : SYNTHETIC_ERRNO(EIO), /* Make the most common error r… in pull_job_curl_on_finished()
192 "HTTP request to %s failed with code %li.", j->url, status); in pull_job_curl_on_finished()
194 } else if (status < 200) { in pull_job_curl_on_finished()
195 …rno(SYNTHETIC_ERRNO(EIO), "HTTP request to %s finished with unexpected code %li.", j->url, status); in pull_job_curl_on_finished()
533 static int http_status_ok(CURLcode status) { in http_status_ok() argument
535 return status >= 200 && status <= 299; in http_status_ok()
538 static int http_status_etag_exists(CURLcode status) { in http_status_etag_exists() argument
540 return status == 304; in http_status_etag_exists()
548 long status; in pull_job_header_callback() local
561 code = curl_easy_getinfo(j->curl, CURLINFO_RESPONSE_CODE, &status); in pull_job_header_callback()
567 if (http_status_ok(status) || http_status_etag_exists(status)) { in pull_job_header_callback()
589 …if (!http_status_ok(status)) /* Let's ignore the rest here, these requests are probably redirects … in pull_job_header_callback()