do not use error/notFound functions inside of res.render options