From 615a3e95e5d53bb9aac86ad93ff6f361c8403d15 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 9 Sep 2024 16:59:46 +0900 Subject: [PATCH] Fix typo when returning 500 error --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));