Make curl fail on HTTP errors