WWW-Authenticate docs are worth a read. I didn’t know about this part.. apparently it’s a MUST to include.
“A server using HTTP authentication will respond with a 401 Unauthorized response to a request for a protected resource. This response _MUST_ include at least one WWW-Authenticate header and at least one challenge, to indicate what authentication schemes can be used to access the resource (and any additional data that each particular scheme needs).”
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate