Sorry but this is way to generic to even try to help. But, on the first glance - it seems that you are calling something that is not in the API or is not accessible?
What exactly is your call? Is it some custom route/controller or?
I am trying to hit API for
http://localhost:1337/api/contacts and see it on my browser.