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 says so: the code in its title or main heading ("404 - Page Not Found"), or the words the framework's own error page uses for it ("Whoops!" for 500). An app with error pages of its own passes as long as they print the code.

Examples

Then I should see the 404 error page
Then I should see the 500 error page
And I should see the 403 error page
Then we should see the 404 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/codeigniter-steps (github.com/webship/codeigniter-steps), a step pack for Webship-js 2.0.x.