REST API Reponse Changed to 404 for Unauthorized Requests

Our app does request to Bitbucket Cloud, to files like:

If we got a HTTP 401 unauthorized response, then we would initiate the OAuth dance for that file.
However, looks like the endpoint now returns a 404 instead of a 401, breaking our apps workflow.

Is that a intended change? Did we miss some announcement?