From 1b747886b22ec7940fe0b68689fd2862477872a5 Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Thu, 7 Mar 2024 18:07:37 +0300 Subject: [PATCH] FUCK --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);