From cbf96969dba839a001422176c4d23efbcdd98598 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 1 Oct 2018 11:30:34 -0700 Subject: [PATCH] ircd::http: Support 524 "A Timeout Occurred" --- 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 35d5eb16c..4e5dd068e 100644 --- a/include/ircd/http.h +++ b/include/ircd/http.h @@ -307,6 +307,7 @@ enum ircd::http::code GATEWAY_TIMEOUT = 504, HTTP_VERSION_NOT_SUPPORTED = 505, INSUFFICIENT_STORAGE = 507, + A_TIMEOUT_OCCURRED = 524, // cloudflare }; template diff --git a/ircd/http.cc b/ircd/http.cc index fda89f9d7..19f74b7b0 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -100,6 +100,7 @@ ircd::http::reason { code::GATEWAY_TIMEOUT, "Gateway Timeout" }, { code::HTTP_VERSION_NOT_SUPPORTED, "HTTP Version Not Supported" }, { code::INSUFFICIENT_STORAGE, "Insufficient Storage" }, + { code::A_TIMEOUT_OCCURRED, "A Timeout Occurred" }, }; template