ch25: mocking http responses