From ced4160d056c657afd21132b9ab3cab70cef8c83 Mon Sep 17 00:00:00 2001 From: SoenkeHeeren <62693541+SoenkeHeeren@users.noreply.github.com> Date: Thu, 26 Mar 2020 17:20:32 +0100 Subject: [PATCH] add http status code 201 to show the right status message in return headers (#402) --- httplib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/httplib.h b/httplib.h index e46f20f..f6a21bf 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";