Skip to content
Skip to content
← All HTTP Headers
Response

WWW-Authenticate

Defines the authentication method the server requires to access a protected resource.

Syntax

WWW-Authenticate: <scheme> realm="<realm>"

Example

WWW-Authenticate: Bearer realm="api.enterno.io", error="invalid_token"

Description

The WWW-Authenticate response header is sent alongside a 401 Unauthorized status. It defines the authentication scheme(s) that can be used to gain access, such as Basic, Digest, or Bearer.

The client then includes matching credentials in subsequent requests using the Authorization header.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers