diff --git a/src/onion/response.c b/src/onion/response.c index 104c370f..b8a6a61d 100644 --- a/src/onion/response.c +++ b/src/onion/response.c @@ -574,6 +574,8 @@ const char *onion_response_code_description(int code) { return "Method Not Allowed"; case HTTP_RANGE_NOT_SATISFIABLE: return "Range Not Satisfiable"; + case HTTP_IM_A_TEAPOT: + return "I'm a teapot"; case HTTP_INTERNAL_ERROR: return "Internal Server Error"; diff --git a/src/onion/response.h b/src/onion/response.h index fee29f1e..1dfec457 100644 --- a/src/onion/response.h +++ b/src/onion/response.h @@ -63,6 +63,7 @@ extern "C" { HTTP_NOT_FOUND = 404, HTTP_METHOD_NOT_ALLOWED = 405, HTTP_RANGE_NOT_SATISFIABLE = 416, + HTTP_IM_A_TEAPOT = 418, // Error codes HTTP_INTERNAL_ERROR = 500,