====test==== If the current document provides a response with 401 as status code And the current request is not providing the required credentials I should receive the exact specified 401 response (and not a generated one) ====spec==== { "info": { "name": "Test" }, "auth": { "type": "apikey", "apikey": [ { "key": "in", "value": "query", "type": "string" }, { "key": "key", "value": "apiKey", "type": "string" } ] }, "item": [ { "id": "3b4f5a70-2a8f-46ba-a04b-a6f80621ad3f", "request": { "url": { "path": ["todos"] }, "method": "GET" }, "response": [ { "code": 200, "description": "OK", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "\"test\"" }, { "code": 401, "description": "unauthorized", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "\"unauthorized\"" } ] } ] } ====server==== mock -p 4010 ${document} ====command==== curl -i http://localhost:4010/todos ====expect==== HTTP/1.1 401 Unauthorized "unauthorized"