make curl fail on HTTP errors