diff --git a/index.js b/index.js index f2c483e..904cff3 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ app.get("/*/status/*", async (req, res) => { twitter_res = await fetch(target); } catch (err) { return res - .status(502) + .status(500) .send("Error from Twitter API: " + format("%s", err)); } if (twitter_res.status == 200) { @@ -38,7 +38,7 @@ app.get("/*/status/*", async (req, res) => { body = await twitter_res.json(); } catch (err) { return res - .status(502) + .status(500) .send("Error from Twitter API: " + format("%s", err)); } let html = parse(body.html);