mozilla/CSOL-site — pull request #179 by stenington (2013-05-09 20:01:17+00:00)
Title: Error handling

This introduces an `errors.js` controller and new ServerError class
to be used when routes want to bail out with a suggested status code
and message. The default error handler will obey the status code,
sending the message as text, or JSON if the request was an xhr.
It responds on Errors without a suggested status code with 500.