Simulate empty response if server is down

Viewed 89

I have 2 mockservices returning success and failure responses based on request body. Now I need to simulate an empty response if the server is down or unavailable.

How can this be done in Java ?

1 Answers
Related