Changed bad authentication status code to 401.