Confirm the URL Is Correct. This might sound obvious, but the 401 error code might appear if the user entered the wrong URL in the browser's address bar. ...
Clear User End Issues. ...
Check Authentication Credentials. ...
Disable Password Protection. ...
Troubleshoot the Code.