pub fn new_network_error_with_cause( code: u16, message: &str, details: &str, temporary: bool, cause: Option<Error>, ) -> Error
Create a new network error wrapping an underlying reqwest cause.