pub async fn http_error_handling<T: DeserializeOwned>(
    response: Response
) -> Result<T>