GFED4ORASDTMUQUCOXXZMOXSR6JJGCP3IEM3SMDG52GX2NMXC4GQC
GYXIF25T2BCTCWCQI5DQOF3F4HBWDJUDJUMZ2WLHVBIOYATJTFAQC
JRENVH5DF2F4SOV7UNJENFA7VDI3H63XK76R3LFZK6QCW7JIBLSQC
MU5GSJAW65PEG3BRYUKZ7O37BPHW3MOX3S5E2RFOXKGUOJEEDQ5AC
FBXYP7QM7SG6P2JDJVQPPCRKJE3GVYXNQ5GVV4GRDUNG6Q4ZRDJQC
TPEH2XNBS5RO4IEVKENVF6P65AH7IX64KK2JAYMSJT3J5GXO67EAC
CCLLB7OIFNFYJZTG3UCI7536TOCWSCSXR67VELSB466R24WLJSDAC
if !res.status().is_success() {
bail!("HTTP error {:?}", res.status())
let status = res.status();
if !status.is_success() {
match serde_json::from_slice::<libpijul::RemoteError>(&*res.bytes().await?) {
Ok(remote_err) => return Err(remote_err.into()),
Err(_) if status.as_u16() == 404 => bail!("Repository `{}` not found (404)", self.url),
Err(_) => bail!("Http request failed with status code: {}", status)
}