Complete the code to set the mock server response status code.
pm.mockResponse.setStatus([1]);The status code must be a number like 200 to indicate success.
Complete the code to set a mock server response header.
pm.mockResponse.setHeader('[1]', 'application/json');
The 'Content-Type' header tells the client the data format, here JSON.
Fix the error in the mock server response body assignment.
pm.mockResponse.setBody([1]);The body must be a string, so JSON must be inside quotes.
Fill both blanks to correctly check if the mock server is enabled and then start it.
if (pm.mockResponse.[1]()) { pm.mockResponse.[2](); }
Use isEnabled() to check if mock is active, then start() to run it.
Fill all three blanks to set a mock response with status 404, a JSON content type header, and a body message.
pm.mockResponse.setStatus([1]); pm.mockResponse.setHeader('[2]', 'application/json'); pm.mockResponse.setBody([3]);
Use status 404 for not found, set 'Content-Type' header, and provide JSON string body.
