79670311

Date: 2025-06-18 09:03:49
Score: 0.5
Natty:
Report link

you can try to use "use", I did like this when I got this problem, I added it after all the routes:

app.use(req: Request, res: Response) => {
    res.status(404).json({
        message: `The URL ${req.originalUrl} doesn't exist`
    });
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: FaFa