I have an express middleware in my Next.js app that could pass to the express instance an error:
function (req, res, expressNext) { //Returns an error: