Add error details and response content when failing to parse response