Prerequisites
🚀 Feature Proposal
I suggest to introduce the ability to customise the status code for failed authentication requests
Motivation
A follow-up issue to #164. To support using Proxy-Authenticate in a manner that is compliant to the http standard it is necessary to use the 407 status code in the error response. See
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Proxy-Authenticate
Example
options = {
authenticate: { realm: "My Realm", header: "Proxy-Authorization", failureStatusCode: 407 }
}
Originally posted by @pqnet in #164
Prerequisites
🚀 Feature Proposal
I suggest to introduce the ability to customise the status code for failed authentication requests
Motivation
A follow-up issue to #164. To support using
Proxy-Authenticatein a manner that is compliant to the http standard it is necessary to use the407status code in the error response. Seehttps://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Proxy-Authenticate
Example
Originally posted by @pqnet in #164