In case of sent/delivered status, Twilio is POSTing to the requested webhook url with the following parameters: SmsSid, SmsStatus, MessageStatus, To, MessageSid, AccountSid, From, ApiVersion)
I am not able to emulate a failed/undelivered status with a trial account.
And the docs here says:
Twilio will POST the MessageSid along with the other standard request parameters as well as MessageStatus and ErrorCode.
My question is from the ErrorCode(numeric) how do you get the "ErrorMessage"/"ErrorDescription", something which is human readable.
Does Twilio pass that in any of the params in case of failed/undelivered status?
I found the docs saying:
If your message status is failed or undelivered, the ErrorCode can give you more information about the failure.
But how? In form of any other extra params being passed by Twilio to our webhook url. If yes, what are the param name for them? Or a new api call using the ErrorCode?. How do you do that?