Proper Status code for failed auth.

The server was returning a status code of 500 whenever there was a call
to the server that required auth. It is now correctly returning 401:
Unauthorized.