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