From bb2f96afebdaa4d369b4efdfac9a643c85b62149 Mon Sep 17 00:00:00 2001 From: Albert S Date: Fri, 1 Jun 2018 14:34:58 +0200 Subject: [PATCH] Added a few more common http status codes --- httplib.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httplib.h b/httplib.h index fc525c3..39d0e9f 100644 --- a/httplib.h +++ b/httplib.h @@ -732,7 +732,12 @@ inline const char* status_message(int status) { switch (status) { case 200: return "OK"; + case 301: return "Moved Permanently"; + case 302: return "Found"; + case 303: return "See Other"; + case 304: return "Not Modified"; case 400: return "Bad Request"; + case 403: return "Forbidden"; case 404: return "Not Found"; case 415: return "Unsupported Media Type"; default: