The response to send for a refused request: the status, and the headers
that go with it. WWW-Authenticate is always present. DPoP-Nonce and
Cache-Control: no-store are present when the client has to retry with a
fresh nonce (RFC 9449 sections 8.2 and 9).
The body is yours to choose. It should not say which check failed; the
client already gets everything RFC 9449 lets it act on.
The response to send for a refused request: the status, and the headers that go with it.
WWW-Authenticateis always present.DPoP-NonceandCache-Control: no-storeare present when the client has to retry with a fresh nonce (RFC 9449 sections 8.2 and 9).The body is yours to choose. It should not say which check failed; the client already gets everything RFC 9449 lets it act on.