Skip to content

Commit

Permalink
support HTTP code 418
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
akostadinov committed Jul 7, 2023
1 parent e5560c5 commit 2226951
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/iodine/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 2226951

Please sign in to comment.