The resource was not found. Here are some examples of cases that may trigger a 404 error.
GET verify.twilio.com/v2/Services/VA123/VE123 Or POST verify.twilio.com/v2/Services/VA123/VerificationCheck
GET /2010-04-01/Accounts/AC123/Calls/CA123
where CA123 is not a call sid that exists for your account
GET /2010-04-01/Accounts/AC123/TwilioCalls/CA123
where the resource name is Calls, not TwilioCalls. Note that the API is case sensitive, so requesting "calls" instead of "Calls" will also return a 404.
$callSid = null; $client->account->calls->get($callSid);
This may turn into
GET /2010-04-01/Accounts/AC123/Calls/.json
because of the nonexistent sid, which may 404 your request or give you back a result you were not expecting. Or, you may initialize the client with an empty string for an account sid, which means the URL will get truncated in the middle (note the consecutive slashes):
GET /2010-04-01/Accounts//Calls/CA123.json
https://api.twilio.com
. For example, making
requests to https://twilio.com
or https://www.twilio.com
will not work.