Enhancement for setting sinatra response type