When an API error occurs, the SDK logs the detailed error response but only throws a generic Error with response.statusText The detailed JSON error gets lost and we are not able to access it.
Here is the exact line where the original error is getting lost.
https://github.com/exotel/exotel-ip-calling-crm-websdk/blob/main/src/ExotelWebPhoneSDK.ts#L164