Add support for status code 418 (#557)

This commit is contained in:
Martin Chang 2020-09-03 21:11:25 +08:00 committed by GitHub
parent 19df3afb78
commit 3a00ffde47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,7 @@ enum HttpStatusCode
k415UnsupportedMediaType = 415,
k416RequestedRangeNotSatisfiable = 416,
k417ExpectationFailed = 417,
k418ImATeapot = 418,
k421MisdirectedRequest = 421,
k425TooEarly = 425,
k426UpgradeRequired = 426,

View File

@ -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";