mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
Add 418 I'm a teapot HTTP status
This commit is contained in:
committed by
Mohammad Nejati
parent
146de67f5e
commit
4bff457ef7
@@ -72,6 +72,7 @@ int_to_status(unsigned v)
|
||||
case status::unsupported_media_type:
|
||||
case status::range_not_satisfiable:
|
||||
case status::expectation_failed:
|
||||
case status::i_am_a_teapot:
|
||||
case status::misdirected_request:
|
||||
case status::unprocessable_entity:
|
||||
case status::locked:
|
||||
@@ -178,6 +179,7 @@ obsolete_reason(status v)
|
||||
case status::unsupported_media_type: return "Unsupported Media Type";
|
||||
case status::range_not_satisfiable: return "Range Not Satisfiable";
|
||||
case status::expectation_failed: return "Expectation Failed";
|
||||
case status::i_am_a_teapot: return "I'm a teapot";
|
||||
case status::misdirected_request: return "Misdirected Request";
|
||||
case status::unprocessable_entity: return "Unprocessable Entity";
|
||||
case status::locked: return "Locked";
|
||||
|
@@ -80,6 +80,7 @@ enum class status : unsigned
|
||||
unsupported_media_type = 415,
|
||||
range_not_satisfiable = 416,
|
||||
expectation_failed = 417,
|
||||
i_am_a_teapot = 418,
|
||||
misdirected_request = 421,
|
||||
unprocessable_entity = 422,
|
||||
locked = 423,
|
||||
|
@@ -72,6 +72,7 @@ public:
|
||||
check(status::unsupported_media_type ,415, status_class::client_error);
|
||||
check(status::range_not_satisfiable ,416, status_class::client_error);
|
||||
check(status::expectation_failed ,417, status_class::client_error);
|
||||
check(status::i_am_a_teapot ,418, status_class::client_error);
|
||||
check(status::misdirected_request ,421, status_class::client_error);
|
||||
check(status::unprocessable_entity ,422, status_class::client_error);
|
||||
check(status::locked ,423, status_class::client_error);
|
||||
@@ -143,6 +144,7 @@ public:
|
||||
good(status::unsupported_media_type);
|
||||
good(status::range_not_satisfiable);
|
||||
good(status::expectation_failed);
|
||||
good(status::i_am_a_teapot);
|
||||
good(status::misdirected_request);
|
||||
good(status::unprocessable_entity);
|
||||
good(status::locked);
|
||||
|
Reference in New Issue
Block a user