TryGhost/Ghost — pull request #3686 by sebgie (2014-08-08 08:01:13+00:00)
Title: Improve error handling for authentication

closes #3660
- added wrapping in JSON API format to error500()
- added client side handling