What does the HTTP status code 401 indicate?

The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to authorize correctly.

For More Information Please Refer: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401