refactored to move common check for error code in client
refactored to move common check for error code in client

eirslett/softlayer-go,maximilien/softlayer-go,maximilien/softlayer-go,jianqiu/softlayer-go,eirslett/softlayer-go,TheWeatherCompany/softlayer-go,jianqiu/softlayer-go,TheWeatherCompany/softlayer-go,mattcui/softlayer-go,mattcui/softlayer-go