Currently we are only raising an error for any invalid response, but it is not that helpful sometime as we can't exactly see what is the response we got from API.
This commit changes this to support showing the response body, and it also parse the response body so the error instance will have the error type with proper message.
Currently we are only raising an error for any invalid response, but it is not that helpful sometime as we can't exactly see what is the response we got from API.
This commit changes this to support showing the response body, and it also parse the response body so the error instance will have the error type with proper message.