in src/WebProxyAdapter.h [130:153]
virtual std::string message(int c) const override final
{
switch(static_cast<WebProxyAdapterErrc>(c))
{
case WebProxyAdapterErrc::Success:
return "TCP Tunnel established successfully";
case WebProxyAdapterErrc::ServerError:
return "The Web proxy server responded with 5xx to the HTTP CONNECT request";
case WebProxyAdapterErrc::ClientError:
return "The Web proxy server responded with 4xx to the HTTP CONNECT request";
case WebProxyAdapterErrc::RedirectionError:
return "The Web proxy server responded with 3xx to the HTTP CONNECT request";
case WebProxyAdapterErrc::TcpConnectError:
return "Failed to establish the TCP connection to the Web proxy";
case WebProxyAdapterErrc::OtherHttpError:
return "The Web proxy didn't respond with 200 response code.";
case WebProxyAdapterErrc::HttpWriteRequestError:
return "Failed to send to the CONNECT request to the Web proxy";
case WebProxyAdapterErrc::SslHandshakeError:
return "Failed to perform the SSL handshake with the Web proxy";
default:
return "unknown";
}
}