This is very much a nitpick, but can you use response[2]?  I worry about what happens when rack apps start returning more than 3 elements.