Programmable Voice API Error Handling

Result Code Grouping

The result codes of the Server API are grouped into five categories as listed in the below table.

CodeCategoryDescription
1xxInformationRequest received and processed.
2xxSuccessRequest received and accepted.
3xxRedirectionAction required to complete the request.
4xxClient ErrorIllegible request syntax. The request cannot be fulfilled.
5xxServer ErrorServer failed to complete a legitimate request.

Error Codes

The error codes are described below.

HTTP Error CodeDescription
6101The Voice service is not subscribed.
6110The application is not found.
6111The call is not established.
6112The call is in the bridged mode and cannot play the media.
6113An error has occurred while creating a bridge.
6114Failed to add the channel to the bridge.
6115Failed to the play voice menu on the bridge.
6116External media request has failed.
6117Text-to-speech conversion is not supported for the Voice service.
6118The phone number is not found for the service.
6119Failed to start recording on the bridge.
6120An error occurred while converting text to speech.
6121Request for converting text to speech has failed.
6122The play request is pending.
6123Failed playing text-to-speech on the media channel.
6124An invalid parameter is specified for the outbound call.
6125Request for text-to-speech has failed.
6126Request for text-to-speech has failed.
6127Request for text-to-speech has failed.
6128The text-to-speech request is longer than the allowed limit of 1024 characters.
6129The number of text-to-speech requests has exceeded the quota or rate of requests allowed for your subscription.
6130A network or server-side issue has occurred.
6131An invalid parameter is specified for the outbound call.
6132An error occurred while answering an incoming call.
6133The inbound number is not associated with any service.
6134Unable to connect to the Voice server.
6135An invalid parameter has been specified for the recording request.
6136The specified recording format is not supported on the system.
6137This recording file name exists in the system.
6138Resource for recording is not found.
6139Not able to stop the recording.
6140Error occurred while fetching the recording file.
6141The SIP gateway service is unavailable.
6142Checking of the Wallet balance failed.
6143The speech was not recognized.
6144Speech recognition is cancelled by the user.
6145Speech recognition is cancelled due to the end of the stream.
6146Speech Recognition is cancelled due to an error.
400Bad request.
401The Basic Authorization header is not found.
404The resource is not found. Details of the resource will be added in the JSON body.
405This method is not allowed.
407The authorization token is either wrong or not found.
500An internal server error has occurred.
511Additional authentication is required.