Fix: make sure http errors from the requested resource are noticed

Note that this fix changes the default behaviour. It works for me, but I can not voice for 100% of usecases.

We might also allow the caller to pass in CURLOPT_FAILONERROR = false via extraoptions to keep some flexibility. Again, not sure who would need it.