The answer the API docs show for the operation tried out last: its status, and a text inside its body when the step names one. Letter case and white space do not count.
Examples
Then the API docs should show the answer 200
Then the API docs should show the answer 422 saying "String should have at least 8 characters"
And the API docs should show the answer 401 saying "Not authenticated"
Then the API docs should show the answer 400 saying "Incorrect email or password"
And the API docs should show the answer 404
Pattern
Then(/^the API docs should show the answer (\d{3})(?: saying "([^"]*)")?$/, …)
Part of @webship-js/fastapi-steps (github.com/webship/fastapi-steps), a step pack for Webship-js 2.0.x.