REST API Reponse Changed to 404 for Unauthorized Requests

Our app does request to Bitbucket Cloud, to files like:
https://api.bitbucket.org/2.0/repositories/include4bitbucket/mvn-sub-modules-private/src/master/README.txt

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?

4 Likes