The page shows an error: its first heading carries the status (the app's error page shows it, as the default one does), the page loaded with that status when it came by a page load, and the page says the message, when one is given. The step waits for it.
Examples
Then the page should show the 404 error
Then the page should show the 404 error "Not Found"
And the page should show the 500 error "Internal Error"
Then the page should show the 403 error
Then the page should show the 404 error "Page not found"
Pattern
Then(/^the page should show the (\d{3}) error(?: "([^"]*)")?$/, …)
Part of @webship-js/svelte-steps (github.com/webship/svelte-steps), a step pack for Webship-js 2.0.x.