Assert what the framework's default error page says: the reason and the status of its line "There was an unexpected error (type=Not Found, status=404).".
Examples
Then the default error page should say "Not Found" with the status 404
Then the default error page should say "Forbidden" with the status 403
And the default error page should say "Internal Server Error" with the status 500
Then the default error page should say "Method Not Allowed" with the status 405
Then the default error page should say "Bad Request" with the status 400
Pattern
Then(/^the default error page should say "([^"]*)" with the status (\d{3})$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.