diff --git a/lib/inc/drogon/HttpTypes.h b/lib/inc/drogon/HttpTypes.h index 9d1bded3..49ab075f 100644 --- a/lib/inc/drogon/HttpTypes.h +++ b/lib/inc/drogon/HttpTypes.h @@ -56,6 +56,7 @@ enum HttpStatusCode k415UnsupportedMediaType = 415, k416RequestedRangeNotSatisfiable = 416, k417ExpectationFailed = 417, + k418ImATeapot = 418, k421MisdirectedRequest = 421, k425TooEarly = 425, k426UpgradeRequired = 426, diff --git a/lib/src/HttpUtils.cc b/lib/src/HttpUtils.cc index dc3f810a..693c07f2 100644 --- a/lib/src/HttpUtils.cc +++ b/lib/src/HttpUtils.cc @@ -336,6 +336,11 @@ const string_view &statusCodeToString(int code) static string_view sv = "Expectation Failed"; return sv; } + case 418: + { + static string_view sv = "I'm a Teapot"; + return sv; + } case 421: { static string_view sv = "Misdirected Request";