How to distinguish between bad file path vs no access


I was using the ArvadosR SDK to get data from Arvados, and for some files that I don’t have access, I got 404 File not found error message. I’m thinking should 403 Forbidden message more clear? Does anyone have experiencing dealing with the difference between wrong file path vs no access to correct file path?