31400: Bad Request
VOICE
ERROR
This error means Twilio could not understand the request because the syntax was malformed. 31400 is a Voice error with the message Bad Request.
- The request body or parameters are malformed, so Twilio cannot parse the request.
- The request uses an unsupported content type instead of
application/x-www-form-urlencodedormultipart/form-data. - If you are using
device.connect(), theparamsvalue is not a JavaScript object of key/value pairs, or the call data you send does not match what the Voice SDK expects.
- Rebuild the request with valid syntax and include every required field before you send it.
- Send Twilio API requests with a supported content type.
- If you are using
device.connect(), passparamsas a JavaScript object of key/value pairs, and keep the total length within 800 bytes.