From 4c58b91e402cf7afb78a9776966a0f24a0eeb7b3 Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 29 Jul 2019 09:47:50 -0400 Subject: [PATCH] Added additonal status messages --- httplib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httplib.h b/httplib.h index bc7f357..3c89cf7 100644 --- a/httplib.h +++ b/httplib.h @@ -940,6 +940,7 @@ inline const char *find_content_type(const std::string &path) { inline const char *status_message(int status) { switch (status) { case 200: return "OK"; + case 206: return "Partial Content"; case 301: return "Moved Permanently"; case 302: return "Found"; case 303: return "See Other"; @@ -950,6 +951,8 @@ inline const char *status_message(int status) { case 413: return "Payload Too Large"; case 414: return "Request-URI Too Long"; case 415: return "Unsupported Media Type"; + case 416: return "Range Not Satisfiable"; + default: case 500: return "Internal Server Error"; }