Missing http header WWW-Authenticate


Is it possible to somehow add standard HTTP header WWW-Authenticate to GraphQL response?
Is it possible to somehow modify response when 401 Unauthorized occurs? I am using anonymous authorization.

Link to similar question in frontend part mongodb - How can i workaround missing WWW-Authenticate http header in Ktor Client? - Stack Overflow