HTTP Response code 401 for unauthenticated access of authenticated pages.
HTTP Response code 401 for unauthenticated access of authenticated pages.

For pages that require authentication, when the user is unauthenticated
we raise LoginRequest exception which is then caught and the message
indicating authentication required is shown. But the response returned
has a status code of 200. This is misleading. With this patch, we get
401, which is the right HTTP Response code for authentication failures.

rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son