pub(crate) fn call_logged( method: &str, result: Result<Response, Error>, ) -> Result<Response, ApiError>
Run a request, logging the response like httpx and turning HTTP errors into ApiError.
ApiError