401 Error by this Code?

So is that an solution: “?api_version=5” adding this into code, but where?