When a program asks for "/oups"

Ask the app for a path the way a program does: with Accept: application/json and the browser's session, without following a redirect. The answer is read by the next steps: an error comes back as JSON (timestamp, status, error, path).

Examples

When a program asks for "/oups"
When a program asks for "/actuator/env"
And a program asks for "/no-such-page"
When a program asks for "/owners/new"
When a program asks for "/actuator/health"

Pattern

When(/^a program asks for "([^"]*)"$/, …)

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