From 57f28374c961e550ec99dbc8c0636075decfbb2a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 7 Mar 2019 16:01:19 -0800 Subject: [PATCH] ircd::http: Add 428 Precondition Required. --- include/ircd/http.h | 1 + ircd/http.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/include/ircd/http.h b/include/ircd/http.h index 04d2cfb98..12c57cf3a 100644 --- a/include/ircd/http.h +++ b/include/ircd/http.h @@ -327,6 +327,7 @@ enum ircd::http::code EXPECTATION_FAILED = 417, IM_A_TEAPOT = 418, UNPROCESSABLE_ENTITY = 422, + PRECONDITION_REQUIRED = 428, TOO_MANY_REQUESTS = 429, REQUEST_HEADER_FIELDS_TOO_LARGE = 431, diff --git a/ircd/http.cc b/ircd/http.cc index ad266066a..781f81f86 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -92,6 +92,7 @@ ircd::http::reason { code::EXPECTATION_FAILED, "Expectation Failed" }, { code::IM_A_TEAPOT, "Negative, I Am A Meat Popsicle" }, { code::UNPROCESSABLE_ENTITY, "Unprocessable Entity" }, + { code::PRECONDITION_REQUIRED, "Precondition Required" }, { code::TOO_MANY_REQUESTS, "Too Many Requests" }, { code::REQUEST_HEADER_FIELDS_TOO_LARGE, "Request Header Fields Too Large" },