commit 3844bbf

default  ·  2025-02-17 06:53:06 +0000 UTC
parent c12a7e3
Add fake HTTP status error 399 to http_status_text().
1 files changed,  +1, -0
M snac.c
M snac.c
+1, -0
1@@ -181,6 +181,7 @@ const char *http_status_text(int status)
2 /* translate status codes to canonical status texts */
3 {
4     switch (status) {
5+        case 399: return "Timeout";
6 #define HTTP_STATUS(code, name, text) case HTTP_STATUS_ ## name: return #text;
7 #include "http_codes.h"
8 #undef HTTP_STATUS