Error checking for curl_exec()

Check for >=400 errors from curl_exec()