mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 16:50:12 +01:00
ircd::http: Add 406 / 415 codes to enumerations.
This commit is contained in:
parent
dcbbaf2579
commit
cb2c95ceb6
2 changed files with 4 additions and 0 deletions
|
@ -65,11 +65,13 @@ enum ircd::http::code
|
|||
FORBIDDEN = 403,
|
||||
NOT_FOUND = 404,
|
||||
METHOD_NOT_ALLOWED = 405,
|
||||
NOT_ACCEPTABLE = 406,
|
||||
REQUEST_TIMEOUT = 408,
|
||||
CONFLICT = 409,
|
||||
LENGTH_REQUIRED = 411,
|
||||
PAYLOAD_TOO_LARGE = 413,
|
||||
REQUEST_URI_TOO_LONG = 414,
|
||||
UNSUPPORTED_MEDIA_TYPE = 415,
|
||||
EXPECTATION_FAILED = 417,
|
||||
IM_A_TEAPOT = 418,
|
||||
UNPROCESSABLE_ENTITY = 422,
|
||||
|
|
|
@ -80,11 +80,13 @@ ircd::http::reason
|
|||
{ code::FORBIDDEN, "Forbidden" },
|
||||
{ code::NOT_FOUND, "Not Found" },
|
||||
{ code::METHOD_NOT_ALLOWED, "Method Not Allowed" },
|
||||
{ code::NOT_ACCEPTABLE, "Not Acceptable" },
|
||||
{ code::REQUEST_TIMEOUT, "Request Time-out" },
|
||||
{ code::CONFLICT, "Conflict" },
|
||||
{ code::LENGTH_REQUIRED, "Length Required" },
|
||||
{ code::PAYLOAD_TOO_LARGE, "Payload Too Large" },
|
||||
{ code::REQUEST_URI_TOO_LONG, "Request URI Too Long" },
|
||||
{ code::UNSUPPORTED_MEDIA_TYPE, "Unsupported Media Type" },
|
||||
{ code::EXPECTATION_FAILED, "Expectation Failed" },
|
||||
{ code::IM_A_TEAPOT, "Negative, I Am A Meat Popsicle" },
|
||||
{ code::UNPROCESSABLE_ENTITY, "Unprocessable Entity" },
|
||||
|
|
Loading…
Add table
Reference in a new issue