#377
Refuse messages and calls from inactive Twilio accounts
- Answer message and call creation for an account whose status is
suspendedorclosedwith401and error20005,Account not active. - Keep active accounts unchanged and restore service when the status is set back to
active, with regression coverage and docs.
References:
- Suspended and closed accounts can't make calls or send SMS: https://www.twilio.com/docs/iam/api/subaccounts
- Error
20005, "Account not active": https://www.twilio.com/docs/api/errors/20005 401for missing or invalid credentials (the status for20005is not documented): https://www.twilio.com/docs/usage/twilios-response, with "The account is suspended or closed" among the causes of20003: https://www.twilio.com/docs/api/errors/20003
Fixes #376
@jychp is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.