0
0
Fork 0

added error pages

This commit is contained in:
Gibheer 2011-06-24 14:21:02 +02:00
parent 8aae60a289
commit f0e7ed57e2
1 changed files with 16 additions and 0 deletions

16
page.rb
View File

@ -7,4 +7,20 @@ class Blog < Sinatra::Base
end
s
end
get '/404' do
404
end
error 404 do
'where am i? is somebody here? hello?'
end
get '/502' do
502
end
error 502 do
'oh no, i think i wet myself'
end
end