The API of HttpClient is adapted to C++ with no exceptions.