diff options
| author | 2025-02-17 07:53:06 +0100 | |
|---|---|---|
| committer | 2025-02-17 07:53:06 +0100 | |
| commit | 3844bbf04f9b417ee9fc97f6f43db259a063a1da (patch) | |
| tree | a6671d07d0466a803541cd68f04a6518a72e3a68 | |
| parent | Return ASAP if srv_open() fails. (diff) | |
| download | snac2-3844bbf04f9b417ee9fc97f6f43db259a063a1da.tar.gz snac2-3844bbf04f9b417ee9fc97f6f43db259a063a1da.tar.xz snac2-3844bbf04f9b417ee9fc97f6f43db259a063a1da.zip | |
Add fake HTTP status error 399 to http_status_text().
| -rw-r--r-- | snac.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -181,6 +181,7 @@ const char *http_status_text(int status) | |||
| 181 | /* translate status codes to canonical status texts */ | 181 | /* translate status codes to canonical status texts */ |
| 182 | { | 182 | { |
| 183 | switch (status) { | 183 | switch (status) { |
| 184 | case 399: return "Timeout"; | ||
| 184 | #define HTTP_STATUS(code, name, text) case HTTP_STATUS_ ## name: return #text; | 185 | #define HTTP_STATUS(code, name, text) case HTTP_STATUS_ ## name: return #text; |
| 185 | #include "http_codes.h" | 186 | #include "http_codes.h" |
| 186 | #undef HTTP_STATUS | 187 | #undef HTTP_STATUS |