diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index ab03a728..94ab3f62 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -222,10 +222,10 @@ app.get("/avatars/:v", async function (req, res) { res.send(respon); } else { - res.status(400).send("pls gib ID :3"); + res.status(400).json("pls gib ID :3"); } } catch (error) { - res.status(500).send("whoops >~<"); + res.status(500).json("whoops (error 500) >~<"); } });