Changes auth header invalid error code to 401, like CC

[#74470466]