From aee4739301c19f4439df6ce9593a1b4074b5513a Mon Sep 17 00:00:00 2001 From: Rohit Kumar Date: Wed, 30 Oct 2024 15:50:47 +0530 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a0db900..2dc0cfa 100644 --- a/index.js +++ b/index.js @@ -129,11 +129,11 @@ app.get('/job-status', async (req, res) => { if (job) { res.status(200).json({ "status_code": 200, ...job }); } else { - res.status(200).json({ error: "Job not found, maybe its still processing?", "status_code": 404 }); + res.status(200).json({ "message": "Job not found, maybe its still processing?", "status_code": 404 }); } } catch (error) { console.error("Error fetching job status:", error); - res.status(500).json({ error: "Internal server error" }); + res.status(500).json({ "message": "Internal server error", "status_code": 500 }); } });