From: Stephen Seo Date: Mon, 9 Sep 2024 07:59:46 +0000 (+0900) Subject: Fix typo when returning 500 error X-Git-Tag: 1.0~57 X-Git-Url: https://git.seodisparate.com/stephenseo/js/darkmode.js?a=commitdiff_plain;h=615a3e95e5d53bb9aac86ad93ff6f361c8403d15;p=c_simple_http Fix typo when returning 500 error --- diff --git a/src/main.c b/src/main.c index c797c61..1d5d954 100644 --- a/src/main.c +++ b/src/main.c @@ -221,7 +221,7 @@ int main(int argc, char **argv) { CHECK_ERROR_WRITE(write(connection_fd, response, response_size)); } else { CHECK_ERROR_WRITE(write( - connection_fd, "HTTP/1.1 404 Not Found\n", 23)); + connection_fd, "HTTP/1.1 500 Internal Server Error\n", 23)); CHECK_ERROR_WRITE(write(connection_fd, "Allow: GET\n", 11)); CHECK_ERROR_WRITE(write( connection_fd, "Content-Type: text/html\n", 24));