Confidential Interview Question

How would you mock API responses?