pub async fn check(resp: Response, what: &str) -> Result<Response>
Maps HTTP failures to exit codes: 401/403 → 3, 404 → 4.