rvrignaud/smart-proxy — pull request #1 by ares (2013-11-13 12:43:46+00:00)
Title: Use Sinatra builtin error helper

Could you please test this? I didn't try to run this code but according to Sinatra docs this should work. Also I'd vote for renaming the exception classes to Proxy::Error::BadRequest and Proxy::Error::Unauthorized to be more descriptive.