Then the backend should have refused "price" with "must not be less than 0"

The backend's last answer refused a field: a 400 whose message is the ValidationPipe's list, with an entry about the field (its first word, a nested field by its path "address.city", or "property colour should not exist"; a custom message that does not start with the field, one that names it) containing the reason. Letter case and white space do not count.

Examples

Then the backend should have refused "price" with "must not be less than 0"
And the backend should have refused "name" with "should not be empty"
Then the backend should have refused "colour" with "should not exist"
And the backend should have refused "address.city" with "must be a string"
But the backend should have refused "email" with "must be an email"

Pattern

Then(/^the backend should have refused "([^"]+)" with "([^"]*)"$/, …)

Part of @webship-js/nestjs-steps (github.com/webship/nestjs-steps), a step pack for Webship-js 2.0.x.