sinatra/sinatra — Issue #469: status in "after" filter when using halt()
Author: rb2k
Created: 2012-02-20 21:25:58+00:00
State: open

I asked that [over here](http://stackoverflow.com/questions/9368540/sinatra-response-status-in-after-filters), but I think this might actually be considered a bug:

require 'rubygems'
require 'sinatra'

after do
puts "After hook with code: #{response.status}"
end

get '/hi' do
halt(401, "wtf?")
end

When running curl 127.0.0.1:4567/hi, it results in:

After hook for code: 200