====test==== Sending a HEAD request results in a 405 when no HEAD operation is defined. ====spec==== { "info": { "name": "Test" }, "item": [ { "id": "3b4f5a70-2a8f-46ba-a04b-a6f80621ad3f", "description": "todos", "request": { "description": "todos-head", "url": { "path": ["todos"] }, "method": "GET" }, "response": [ { "description": "abc", "code": 200 } ] } ] } ====server==== mock -p 4010 ${document} ====command==== curl --head http://localhost:4010/todos ====expect==== HTTP/1.1 405 Method Not Allowed