diff --git a/src/app/HttpConstants.h b/src/app/HttpConstants.h index 80ed2f9..10b6827 100644 --- a/src/app/HttpConstants.h +++ b/src/app/HttpConstants.h @@ -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: private: };