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.
| Code | Description |
|---|---|
| 31000 | General Twilio Voice SDK error. Additional information might be available in the debugger. The twilioError field (JavaScript SDK only) can also provide more context. |
| 31001 | TwiML application not found. |
| 31002 | Connection declined. Check the debugger for details about the underlying cause. |
| 31003 | Connection timed out. |
| 31005 | The 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. |
| 31009 | No transport is available to send or receive messages. |
| Code | Description |
|---|---|
| 31100 | Generic malformed request. |
| 31101 | The request is missing the parameter array. |
| 31102 | Authorization token is missing from the request. |
| 31103 | The total length of parameters exceeds MAX_PARAM_LENGTH. |
| 31104 | Invalid bridge token. |
| 31105 | Invalid 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. |