Skip to content

Add Error description json to twilio-java #611

Closed
@DmitryNeverovich

Description

@DmitryNeverovich

Do you have any plans to add errorCodes and errorDescription to Twilio java library?

Twilio error codes: https://www.twilio.com/docs/api/errors
Twilio error codes json: https://www.twilio.com/docs/documents/76/twilio-error-codes.json

Reason: some twilio callbacks return only 'errorCode' without any 'error description'. Callbacks do not include 'error description'.
For example: I send twilio sms message, request was failed with error code 21408. Application received error code 21408 from twilio callback url. The callback url call does not includes error description or error message in parameters.
As workaround I requested message by SID, but I see following: "errorCode:21408" and "error_message: null".
I think more reliable to extract error message from twilio json (https://www.twilio.com/docs/documents/76/twilio-error-codes.json) and avoid additional rest call to twilio.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions