Reference: https://www.twilio.com/docs/api/errors
Possible Causes
- The resource to be modified has moved into a state that is no longer valid.
- Input on the request did not pass validation.
Possible Solutions
- Retry the request after confirming the request is valid.
- Verify if the resource to be modified exists and is in a valid state.
Possible Causes
- The specified resource is no longer available.
Possible Solutions
- The specified resource is no longer available.
This error response is a generic "catch-all" response.
Example
Status code will be 400 and response will be something like this
Reference link: https://www.twilio.com/docs/usage/troubleshooting/debugging-your-application#debugging-calls-to-the-rest-api
{
"code": 21211,
"message": "The 'To' number 5551234567 is not a valid phone number.",
"more_info": "https://www.twilio.com/docs/errors/21211",
"status": 400
}