diff --git a/src/routes/frontend/itemInfo.ts b/src/routes/frontend/itemInfo.ts index 1b257e5..a54e416 100644 --- a/src/routes/frontend/itemInfo.ts +++ b/src/routes/frontend/itemInfo.ts @@ -29,7 +29,9 @@ function get(req: Request, res: Response) { res.send(html); }); } else { - res.send('Item not found'); + Eta.renderFile(__path + '/src/frontend/errors/404.eta.html', item).then((html) => { + res.status(404).send(html); + }); } }); }