When you make a request for a resource that requires authentication, the server will respond with a 401 status code and a header that contains the scope:
WWW-Authenticate: Basic realm="the realm"
The URI is the URL you are trying to access.
source
to share