Modify API to return an HttpClientResponse.