DoResponse method should return correct error.
DoResponse method should return correct error.

When json.Unmarshal fails in the DoResponse method it should returns the associated error. Currently it returns the error generated from ioutil.ReadAll with isn't directly related. I think that the DoResponse method should return an error if the ioutil.ReadAll fails and not attempt the json.Unmarshal. These unreported cause the error propagation to fail which results nil pointer issues later.

Please let me know if there is anything additional I need to do to get this merged into the main branch.
zaphod-concur/elastigo,weberr13/elastigo,zaphod-concur/elastigo,mikeyoon/elastigo,mikeyoon/elastigo,lytics/elastigo,Kaidence/elastigo,PuerkitoBio/elastigo,snikch/elastigo,zaphod-concur/elastigo,mattbaird/elastigo,sammi/elastigo,allgeek/elastigo,slavau/elastigo,slavau/elastigo,ramin/elastigo,Kaidence/elastigo,allgeek/elastigo,chzyer-dev/elastigo,weberr13/elastigo,donnanicolas/elastigo,zenoss/elastigo,donnanicolas/elastigo,barnslig/elastigo,Kaidence/elastigo,splicers/elastigo,splicers/elastigo,mattbaird/elastigo,allgeek/elastigo,splicers/elastigo,zenoss/elastigo,PuerkitoBio/elastigo,origami/elastigo,acsellers/elastigo,dimroc/elastigo,chzyer-dev/elastigo,ramin/elastigo,otiai10/elastigo,triptec/elastigo,jiangjin/elastigo,snikch/elastigo,jiangjin/elastigo,otiai10/elastigo,jiangjin/elastigo,weberr13/elastigo,mattbaird/elastigo,chzyer-dev/elastigo,sammi/elastigo,otiai10/elastigo,sammi/elastigo,acsellers/elastigo,acsellers/elastigo,triptec/elastigo,lytics/elastigo,origami/elastigo,PuerkitoBio/elastigo,snikch/elastigo,ramin/elastigo,dimroc/elastigo,lytics/elastigo,dimroc/elastigo,mikeyoon/elastigo,triptec/elastigo,barnslig/elastigo,donnanicolas/elastigo,barnslig/elastigo,slavau/elastigo,origami/elastigo