Before I go ahead and write my own implementation of a cURL request I'd like to understand why the exception thrown doesn't contain details about the http status (fromĀ curl_getinfo($ch, CURLINFO_HTTP_CODE)) but only the cURL error message (in this case 22 indicating an http status >= 400)? I'd like to see if it's 400, 401 or 404 causing the request to fail.