What happens if curl fails?

You might find curl's `-f` and `-s` flags useful.