diff --git a/404.html b/404.html new file mode 100644 index 0000000..b51a05d --- /dev/null +++ b/404.html @@ -0,0 +1,54 @@ + + + + + + + + + +

404

+

Page Not Found

+ + + diff --git a/client-handler.fnl b/client-handler.fnl index dd5aac3..047a809 100644 --- a/client-handler.fnl +++ b/client-handler.fnl @@ -32,7 +32,8 @@ (. _G.files uri) (. _G.files uri) (utils.file-exists? uri) (with-open [file (io.open uri :r)] (file:read :*a)) - "404 - Not Found")) + (with-open [file (io.open :404.html :r)] + (file:read :*a)))) (client:send "HTTP/1.1 200 OK\r\n\r\n") (client:send content)