Commit 29d41d033fbdf9e376ecb750f2a033e6e897453d

Thomas de Grivel 2024-11-06T11:37:39

Fix error 400 response code from 404.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index e722acd..c94d691 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -169,7 +169,7 @@ defmodule HTTPd do
   </body>
 </html>
 """
-    %HTTP.Response{code: 404, body: body}
+    %HTTP.Response{code: 400, body: body}
   }
 
   def error_404_page = fn (request) {