QuestenaPractice that shows what to review next
Question 11

Which header field must a server include when it responds 401 (Unauthorized)?

  1. Retry-After, indicating when credentials may be presented again
  2. Proxy-Authenticate, with at least one challenge
  3. WWW-Authenticate, with at least one challenge applicable to the target resourceCorrect answer
  4. Authorization

Explanation

A 401 without WWW-Authenticate violates a MUST, which is one practical way 401 differs from 403: 403 carries no such requirement and signals that the server refuses regardless of retrying with the same credentials. Proxy-Authenticate belongs to 407, not 401.

Continue with this test

Start practice
Question 11: Which header field must a server include when it responds… · HTTP Semantics · Questena