web API build with wordpress is showing error of
At times this error occurs when you name you folder or files a reserved or blocked name.
In my case I named a folder contact, turns out the name was blocked from being used as folder names.
When testing my script on postman, I was getting this error:
I changed the folder name from contact to contacts and it worked. The error was gone.