Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Voice SDK Error Codes


The majority of Programmable Voice error codes are five-digit integers that start in the 31000 range.

For details about an error code, its possible causes, and recommended solutions, see the full Error and Warning Dictionary.

(information)

Info

The JavaScript SDK emits errors that include a twilioError field.

This field contains a TwilioError object, which is the default error format in version 2.0 of the SDK. For migration information, see the JavaScript SDK 2.0 migration guide.


Common errors

common-errors page anchor

310xx series: general errors

310xx-series-general-errors page anchor
CodeDescription
31000General Twilio Voice SDK error. Additional information might be available in the debugger. The twilioError field (JavaScript SDK only) can also provide more context.
31001TwiML application not found.
31002Connection declined. Check the debugger for details about the underlying cause.
31003Connection timed out.
31005The WebSocket connection to Twilio signaling servers was unexpectedly closed. If this issue occurs consistently, verify that the provided hostname resolves correctly. If you specify a region during Device setup, make sure the region value is valid.
31009No transport is available to send or receive messages.

311xx series: malformed requests

311xx-series-malformed-requests page anchor
CodeDescription
31100Generic malformed request.
31101The request is missing the parameter array.
31102Authorization token is missing from the request.
31103The total length of parameters exceeds MAX_PARAM_LENGTH.
31104Invalid bridge token.
31105Invalid client name (identity). The value provided in the AccessToken can include only alphanumeric and underscore characters. Using any other character, including spaces, results in unexpected behavior. The maximum identity length is 256 characters.

312xx series: authorization errors

312xx-series-authorization-errors page anchor
CodeDescription
31201Unknown authorization error.
31202JWT signature validation failed.
31203Invalid or inactive account.
31204Invalid JWT token.
31205JWT token has expired.
31206Request rate exceeds the authorized limit.
31207JWT token expiration interval is too long.
31208User denied microphone access.

53xxx series: signaling errors

53xxx-series-signaling-errors page anchor
CodeDescription
53000Signaling connection error: the WebSocket timed out during pre-flight.
53405Media connection failed or media activity ceased: the ICE connection failed.