Then I should see the 404 error page

Assert that the browser shows the error page of a status: the page answered with that status, and it shows the code (and, for the statuses the framework names, the status text: "Not Found", "Page Expired", "Server Error", "Service Unavailable"). An app with error pages of its own passes as long as they print the code. On the single-page kits a form that gets an error page for an answer shows it in a dialog over the page: the step reads that dialog and the status of the answer it holds.

Examples

Then I should see the 404 error page
Then I should see the 403 error page
And I should see the 419 error page
Then we should see the 500 error page
Then I should not see the 404 error page

Pattern

Then(/^(I |we )*should( not)* see the (\d{3}) error page$/, …)

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