Skip to content

Instantly share code, notes, and snippets.

@sordina
Created March 24, 2010 15:28
Show Gist options
  • Save sordina/342397 to your computer and use it in GitHub Desktop.
Save sordina/342397 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'rack'
require 'sinatra'
disable :show_errors
not_found do
status 200
"not found"
end
error do
status 200
"error"
end
get '/' do
"root"
end
get '/error' do
raise "oops"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment