sinatra/sinatra — Issue #402: response.status is wrong after halt called
Author: lrgalego
Created: 2011-11-08 20:49:30+00:00
State: open

When the halt helper is called, the response is not correctly updated.
The status continues to be 200.
Example:
require 'sinatra'

after do
puts response.status
puts response.server_error?
puts response.successful?
end

get '/' do
halt 500, 'error'
end

will print:
200, false, true.
expected was:
500, true, false.

Testes in versions 1.2.1 and 1.3.1