I think you want `return next(new restify.InvalidCredentialsError({'message': errorMessage}));`