In this case, make sure you are correctly sending the method specification, i.e., check if you sent POST or GET as specified at the beginning of this topic.
If you receive a 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, most commonly “application/json”.