diff options
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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>"); |