How do I get a 401 error?

The most common cause of a 401 Unauthorized Error is simply inputting an incorrect URL. As discussed before, many web servers are tightly secured to disallow access to improper URLs that the server isn’t prepared to provide access to.

For More Information Please Refer: