Client errors (4xx)

401 Unauthorized

This page needs you to log in.

Last updated · View as Markdown

Quick answer

A 401 means valid login details are required for this address. An authentication service answered, which does not establish whether the application behind it is working. Our check never logs in, so protected pages can appear restricted to it.

When to wait: Waiting does not help; a login is needed.

If you are visiting the website

  1. Log in again Sign out and sign back in, then reload the page.
  2. Check the address Make sure you are on the public page, not an admin or staging address.

If you run the website

  1. Check protection settings Make sure only private areas need a password, not the public homepage.
  2. Check login services If logins fail for everyone, check your identity provider or session storage.

Worked example: a protected staging address

https://example.com/staging answers 401 together with a WWW-Authenticate header, and the browser shows a sign-in prompt.

An automated public check never signs in, so such an address will always look restricted to it.

Authentication needed, not permission refused

A 401 means valid authentication is required, and WWW-Authenticate names the scheme expected. A 403 means the request was understood but refused; it does not prove that the server knows who you are.

The challenge shows that something serving this address is answering and asking for credentials. It does not show whether the application behind it is working.

Verify the scope, then stop

Check whether the public homepage also answers 401. If only the private area does, the setup is working as intended.

Never type credentials into a prompt reached from an unexpected link. If a public page is protected by mistake, only the operator can relax it.

Likely causes

  • Common The page or whole site is password protected. (Website side)
  • Sometimes Your login has expired. (Your side)

What to avoid

  • Do not enter your password on a page you reached through an unexpected link.

Is the website down? Check it now

One measurement point. Results explain what we saw, not a worldwide verdict.

Sources

Last updated: