JZADJIA3P3EOKPBGEKEXJVGWHNF2SIHYNNMB3XFNPBU4BTVGM3YQC
let stat = resp.status();
if !stat.is_success() {
let body = resp.text().await?;
if !body.is_empty() {
bail!("The HTTP server returned an error: {}", body)
} else {
if let Some(reason) = stat.canonical_reason() {
bail!("HTTP Error {}: {}", stat.as_u16(), reason)
} else {
bail!("HTTP Error {}", stat.as_u16())
}
}
}