diff --git a/app.js b/app.js index b45bc91..3a8b728 100644 --- a/app.js +++ b/app.js @@ -63,4 +63,8 @@ app.listen( process.env.port|| 3000,function(){ // Route for policies.ejs app.get('/policies', (req, res) => { res.render('policies'); // Ensure policies.ejs is in the views directory +}); + +app.get("/*",(req,res) =>{ + res.render("Error"); }); \ No newline at end of file diff --git a/public/img/Error.png b/public/img/Error.png new file mode 100644 index 0000000..f58dce0 Binary files /dev/null and b/public/img/Error.png differ diff --git a/views/Error.ejs b/views/Error.ejs new file mode 100644 index 0000000..9c28bbd --- /dev/null +++ b/views/Error.ejs @@ -0,0 +1,118 @@ + + +
+ + + + + + + +