From ee4ccf755a7e334e8cbdb08a74ca8bcde6abfc70 Mon Sep 17 00:00:00 2001 From: Kinshuk Bairagi Date: Sun, 20 Mar 2022 19:20:52 +0530 Subject: [PATCH] Add http 504 codes --- include/crow/common.h | 1 + include/crow/http_connection.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/crow/common.h b/include/crow/common.h index 06f25da6a..e1edb7eca 100644 --- a/include/crow/common.h +++ b/include/crow/common.h @@ -205,6 +205,7 @@ namespace crow NOT_IMPLEMENTED = 501, BAD_GATEWAY = 502, SERVICE_UNAVAILABLE = 503, + GATEWAY_TIMEOUT = 504, VARIANT_ALSO_NEGOTIATES = 506 }; diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h index 3b902a1e0..f8ce97894 100644 --- a/include/crow/http_connection.h +++ b/include/crow/http_connection.h @@ -322,6 +322,7 @@ namespace crow {status::NOT_IMPLEMENTED, "HTTP/1.1 501 Not Implemented\r\n"}, {status::BAD_GATEWAY, "HTTP/1.1 502 Bad Gateway\r\n"}, {status::SERVICE_UNAVAILABLE, "HTTP/1.1 503 Service Unavailable\r\n"}, + {status::GATEWAY_TIMEOUT, "HTTP/1.1 504 Gateway Timeout\r\n"}, {status::VARIANT_ALSO_NEGOTIATES, "HTTP/1.1 506 Variant Also Negotiates\r\n"}, };