aboutsummaryrefslogtreecommitdiff
path: root/src/guff/not-found-handler.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/not-found-handler.cr')
-rw-r--r--src/guff/not-found-handler.cr10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/guff/not-found-handler.cr b/src/guff/not-found-handler.cr
new file mode 100644
index 0000000..b15b1dc
--- /dev/null
+++ b/src/guff/not-found-handler.cr
@@ -0,0 +1,10 @@
+require "./handler"
+
+module Guff
+ class NotFoundHandler < Handler
+ def call(context : HTTP::Server::Context)
+ context.response.status_code = 404
+ context.response.puts "not found"
+ end
+ end
+end