aboutsummaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorbyte <gf3qyrmw7@mozmail.com>2025-11-01 00:48:33 +0100
committerbyte <gf3qyrmw7@mozmail.com>2025-11-01 00:48:33 +0100
commit8ed4d5bdcbe552eaa0f143c71b90ff7cd2a3d709 (patch)
tree8f86ca0f28ef5c6b242a411bb6e9d38de25cf191 /httpd.c
parenta4a1990dbb16e3e4599500299c32c980c9cbd5bf (diff)
parent074072bde45284a2f11bb8a06b5670dbd3c4a716 (diff)
Merge remote-tracking branch 'orig/master' into feature/lesser-visibility
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index 254d0e5..a8cd849 100644
--- a/httpd.c
+++ b/httpd.c
@@ -598,6 +598,9 @@ void httpd_connection(FILE *f)
if (status == HTTP_STATUS_NOT_FOUND)
body = xs_str_new("<h1>404 Not Found (" USER_AGENT ")</h1>");
+ if (status == HTTP_STATUS_GONE)
+ body = xs_str_new("<h1>410 Gone (" USER_AGENT ")</h1>");
+
if (status == HTTP_STATUS_BAD_REQUEST && body != NULL)
body = xs_str_new("<h1>400 Bad Request (" USER_AGENT ")</h1>");