diff --git a/server/controllers/routes/admin/cohort/deleteCohort.js b/server/controllers/routes/admin/cohort/deleteCohort.js index bbf52d0b..07709373 100644 --- a/server/controllers/routes/admin/cohort/deleteCohort.js +++ b/server/controllers/routes/admin/cohort/deleteCohort.js @@ -10,8 +10,8 @@ const deleteCohort = async (req, res, next) => { data: { message: 'Cohort deleted successfully' }, }); } else { - res.status(400).json({ - StatusCode: 400, + res.status(404).json({ + StatusCode: 404, data: { message: 'Cohort does not exist' }, }); }