We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd24244 commit 9725bafCopy full SHA for 9725baf
src/server/plugins/postcode-lookup/routes/index.js
@@ -29,7 +29,9 @@ function getSessionState(request) {
29
const state = request.yar.get(JOURNEY_BASE_URL)
30
31
if (!state) {
32
- throw Boom.internal(`No postcode lookup data found for ${JOURNEY_BASE_URL}`)
+ throw Boom.badRequest(
33
+ `No postcode lookup data found for ${JOURNEY_BASE_URL}`
34
+ )
35
}
36
37
return state
0 commit comments