From 7aa1dedd86a63fc8dc1ebd3407fffa14537d5f54 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 11 Jan 2018 18:41:58 -0800 Subject: [PATCH] ircd::http: Add 413 PAYLOAD_TOO_LARGE. --- 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 528be0fac..46318a9ce 100644 --- a/include/ircd/http.h +++ b/include/ircd/http.h @@ -81,6 +81,7 @@ enum ircd::http::code METHOD_NOT_ALLOWED = 405, REQUEST_TIMEOUT = 408, CONFLICT = 409, + PAYLOAD_TOO_LARGE = 413, REQUEST_URI_TOO_LONG = 414, EXPECTATION_FAILED = 417, IM_A_TEAPOT = 418, diff --git a/ircd/http.cc b/ircd/http.cc index f1f058ba1..456cb54da 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -110,6 +110,7 @@ const decltype(ircd::http::reason) ircd::http::reason { code::METHOD_NOT_ALLOWED, "Method Not Allowed" }, { code::REQUEST_TIMEOUT, "Request Time-out" }, { code::CONFLICT, "Conflict" }, + { code::PAYLOAD_TOO_LARGE, "Payload Too Large" }, { code::REQUEST_URI_TOO_LONG, "Request URI Too Long" }, { code::EXPECTATION_FAILED, "Expectation Failed" }, { code::IM_A_TEAPOT, "Negative, I Am A Meat Popsicle" },