Expand dump-on-error behaviour
Expand dump-on-error behaviour

Previously "dump on error" would only catch situations where we get
an error code in the http response.  Widen this to also include other
errors, such as TCP read errors.

Financial-Times/up-restutil,Financial-Times/up-restutil