fn check_success(response: &Response) -> Result<(), StorageErrorX>Expand description
Returns an error unless response has a 2xx status. A 3xx gets a
dedicated error because redirects are disabled on the HTTP client (see
build_http_client). Any other status would otherwise let an error page
body be ingested as data.