#include "netStatus.hpp"
NAMESPACE_SOUP
{
const char* netStatusToString(netStatus status)
{
switch (status)
{
case NET_PENDING: return "Pending";
case NET_OK: return "OK";
case NET_FAIL_NO_DNS_RESPONSE: return "DNS Query Got No Response";
case NET_FAIL_NO_DNS_RESULTS: return "DNS Query Yielded No Results";
case NET_FAIL_L4_TIMEOUT: return "TCP Handshake Timed Out";
case NET_FAIL_L4_ERROR: return "TCP Handshake Failed";
case NET_FAIL_L7_TIMEOUT: return "Request Timed Out";
case NET_FAIL_L7_PREMATURE_END: return "Connection Closed Prematurely";
}
SOUP_UNREACHABLE;
}
}