yesodweb/yesod — pull request #783 by cblp (2014-07-25 15:19:47+00:00)
Title: 401 if API client is not authenticated

Server should not HTTP-redirect API client to the auth page, error 401 is more suitable.