| Previous | Next |
| HTTP_E_STATUS_BAD_REQUEST | HTTP_E_STATUS_PAYMENT_REQ |
HTTP_E_STATUS_DENIED
HTTP_E_STATUS_DENIED maps to HTTP 401 Unauthorized. Despite the historical reason phrase, this status means that the request lacks valid authentication credentials for the target resource.
Diagnostic discriminator: Record the WWW-Authenticate challenge and the credential actually sent. A request with valid credentials to the same resource distinguishes 401 authentication failure from 403 authorization denial and avoids treating the response as a connectivity problem.
What to check for HTTP_E_STATUS_DENIED
- Inspect the
WWW-Authenticatechallenge to identify the authentication scheme the server accepts. - Verify token expiry, audience, issuer, clock skew, client certificate selection, or username/password credentials as appropriate.
- Do not confuse 401 with 403: a valid identity can still lack authorization for the requested action.
Looking for a different code? Search another status or error code.
