CheckCurlResponse modifying. if error code = 400 and response not empty throw exception witn more detallised information