Created
May 1, 2013 05:55
-
-
Save cwalsh/5493947 to your computer and use it in GitHub Desktop.
Sinatra app that responds with whatever status code you ask it to.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/:status_code' do | |
status params[:status_code].to_i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternatively entirely encapsulated in a config.ru file: