Complete HttpClientException with code and previous exception.