class Sinatra::Base

def halt(*response)

of the request, and returns the specified response.
Exit the current block, halts any further processing
def halt(*response)
  response = response.first if response.length == 1
  throw :halt, response
end