Add the --fail option to curl to check for URL response errors