Fix code that wasn't using buffered response.

- Some code wasn't using the correct buffered response.
- Added test case to verify that custom ErrorHandlers can
consume the response body if needed.