You can use a library like [1] to mock out a real HTTP server with responses.
[1] https://www.mock-server.com/