Introduction
Mock responses let you pretend a server sends data. This helps test your app even if the real server is not ready or slow.
You want to test your app before the real API is built.
The real server is down or slow, but you need to keep testing.
You want to check how your app handles different server replies.
You want to share a fake API with teammates for testing.
You want to simulate error messages from the server.