Check for cURL http code only if nothing is returned