Make curl output errors on bad HTTP statuses