====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==== swagger: "2.0" paths: /todos: get: produces: - application/json responses: 200: description: OK examples: 'application/json': test 401: description: unauthorized examples: 'application/json': unauthorized securityDefinitions: ApiKeyAuth: type: apiKey in: query name: apiKey security: - ApiKeyAuth: [] ====server==== mock -p 4010 ${document} ====command==== curl -i http://localhost:4010/todos ====expect==== HTTP/1.1 401 Unauthorized "unauthorized"