Add 401 error handler.

Ticket: [BLD-1036](https://edx-wiki.atlassian.net/browse/BLD-1036)

@cpennington @auraz please review.