Started to implement the : static const char *httpStatusToString(HTTP_CODE c) method

This commit is contained in:
anschrammh 2022-04-07 01:19:03 +02:00
parent bf05086381
commit bf4caea902

View File

@ -137,6 +137,17 @@ class HttpConstants
} }
} }
static const char *httpStatusToString(HTTP_CODE c)
{
switch(c)
{
case HTTP_CODE_PARTIAL_CONTENT:
return HTTPCONSTANTS_STRING("206 Partial Content");
break;
default:
return HTTPCONSTANTS_STRING("200 OK");
}
}
protected: protected:
private: private:
}; };