Capture response bodies in exceptions when http requests fail