Then the page should return HTTP status 200

Assert the HTTP status of the page the browser is on, as the session received it. Unlike webship-js's "response status code" step, which asks again without the session, this reads the response the logged-in browser got, so it is the check for administration screens and refusals.

Examples

Then the page should return HTTP status 200
And the page should return HTTP status 403
Then the page should not return HTTP status 500
And the page should return status 404
Then the page should not return status 403

Pattern

Then(/^the page should( not)* return (?:HTTP )?status (\d+)$/, …)

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