From 47f505ff7603d18e9c9f71bfb4951b57236f07c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Emre=20Alada=C4=9F?= Date: Tue, 5 Jan 2016 17:35:07 +0200 Subject: [PATCH] Update view.cr --- src/kemal/view.cr | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/kemal/view.cr b/src/kemal/view.cr index d6e7444..275dd43 100644 --- a/src/kemal/view.cr +++ b/src/kemal/view.cr @@ -1,3 +1,25 @@ +# Template for 403 Forbidden +def render_403 + template = <<-HTML + + + + + + +

Forbidden

+

Kemal doesn't allow you to see this page.

+ + + + HTML + HTTP::Response.new(403, template) +end + # Template for 404 Not Found def render_404 template = <<-HTML