Have curl fail on all HTTP errors - fixes #481