Don't return 401 when checking auth as it tells the browser to prompt for credentials. Issue: #571