pub async fn parse_error_response<T: DeserializeOwned>( response: Response, ) -> Result<T, ErrorResponse>