From bb227ebe6766e1ce5c61d19b2b7a3ab6c82a88cd Mon Sep 17 00:00:00 2001 From: SoenkeHeeren Date: Thu, 26 Mar 2020 10:07:50 +0100 Subject: [PATCH] add http status code 201 to show the right status message in return headers --- httplib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/httplib.h b/httplib.h index e46f20f4e5..f6a21bfb80 100644 --- a/httplib.h +++ b/httplib.h @@ -1599,6 +1599,7 @@ inline const char *status_message(int status) { switch (status) { case 100: return "Continue"; case 200: return "OK"; + case 201: return "Created"; case 202: return "Accepted"; case 204: return "No Content"; case 206: return "Partial Content";