small code repetition. Together with:
`next({
    status: 400,
    message: {
        message: 'Bad request',
	details: 'id: ' + req.pathVar.id + ' should be a number'
    }
});`

good candidates for factoring