Complete the code to define a mock response status code.
{
"status": [1]
}The status code in a mock response should be a numeric HTTP status code like 200 for success.
Complete the code to set the mock response body as JSON.
{
"body": [1]
}The mock response body should be a JSON string representing an object, like {"message": "Success"}.
Fix the error in the mock response header definition.
{
"headers": {
"Content-Type": [1]
}
}Headers values must be strings, so the value should be in quotes like "application/json".
Fill both blanks to define a mock response with status and body.
{
"status": [1],
"body": [2]
}Status 201 means resource created, and the body should be a JSON string like {"result": "Created"}.
Fill all three blanks to define a full mock response with status, headers, and body.
{
"status": [1],
"headers": {
"Content-Type": [2]
},
"body": [3]
}Status 404 means not found, Content-Type header must be a string "application/json", and body is a JSON string with error message.