aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-02-17 07:53:06 +0100
committerdefault <nobody@localhost>2025-02-17 07:53:06 +0100
commit3844bbf04f9b417ee9fc97f6f43db259a063a1da (patch)
treea6671d07d0466a803541cd68f04a6518a72e3a68
parentc12a7e38adbce6058ee7d9d4113cce2649c87977 (diff)
Add fake HTTP status error 399 to http_status_text().
-rw-r--r--snac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/snac.c b/snac.c
index d4a96e9..4e5aaba 100644
--- a/snac.c
+++ b/snac.c
@@ -181,6 +181,7 @@ const char *http_status_text(int status)
/* translate status codes to canonical status texts */
{
switch (status) {
+ case 399: return "Timeout";
#define HTTP_STATUS(code, name, text) case HTTP_STATUS_ ## name: return #text;
#include "http_codes.h"
#undef HTTP_STATUS