Assert that the browser shows the error page of a status: the status the app answered with, and a page that is an error page (the exception handler's page for 500, "An error occurred while processing your request."; the status code page of the app for the others, which names the status or says the page was not found).
Examples
Then I should see the 404 error page
Then I should see the 500 error page
And we should see the 400 error page
Then I should see the 404 error page
And I should see the 500 error page
Pattern
Then(/^(I |we )*should see the (\d{3}) error page$/, …)
Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.