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.