warn!("Error while getting {}, retrying: {}",url,ok.status());
ifstatus!=StatusCode::OK{
res=Err(anyhow::anyhow!("Got status code {}",ok.status()));
warn!("Error while getting {}, retrying: {}",url,status);
ifstatus.is_redirection(){
res=Err(anyhow::anyhow!("Got status code {} redirecting to {}",status,ok.headers().get(header::LOCATION).and_then(|h|h.to_str().ok()).unwrap_or("<unknown>")));
}else{
res=Err(anyhow::anyhow!("Got status code {}",status));