]> git.seodisparate.com - c_simple_http/commitdiff
Fix typo when returning 500 error
authorStephen Seo <seo.disparate@gmail.com>
Mon, 9 Sep 2024 07:59:46 +0000 (16:59 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 9 Sep 2024 07:59:46 +0000 (16:59 +0900)
src/main.c

index c797c613c07e808bd257b2d9ad918d4d5548b8e3..1d5d95483b0f85f49c61230c1ecc582cdcf058ca 100644 (file)
@@ -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));