Add HTTP error messages to failed cURL calls