From 222695176751071dbd545227dfb8ac5bfa5c5c61 Mon Sep 17 00:00:00 2001 From: "Aleksandar N. Kostadinov" Date: Fri, 7 Jul 2023 14:42:29 +0300 Subject: [PATCH] support HTTP code 418 418 I'm a teapot was a result of RFC2324 which was an April 1 RFC. See rfc9110 for more detailed information. It is still very useful to allow for creating easter eggs and generally make life more fun. And as we all know, boring is worse than death. This is only my personal opinion, but anyway, it is the only correct opinion. --- ext/iodine/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/iodine/http.c b/ext/iodine/http.c index 6c39a1a..95d78f0 100644 --- a/ext/iodine/http.c +++ b/ext/iodine/http.c @@ -2696,6 +2696,7 @@ fio_str_info_s http_status2str(uintptr_t status) { HTTP_SET_STATUS_STR(415, "Unsupported Media Type"), HTTP_SET_STATUS_STR(416, "Range Not Satisfiable"), HTTP_SET_STATUS_STR(417, "Expectation Failed"), + HTTP_SET_STATUS_STR(418, "I'm a teapot"), HTTP_SET_STATUS_STR(421, "Misdirected Request"), HTTP_SET_STATUS_STR(422, "Unprocessable Entity"), HTTP_SET_STATUS_STR(423, "Locked"),