From ef69be2036a423090df367ceafe1663d038e7676 Mon Sep 17 00:00:00 2001 From: h33n0k Date: Thu, 12 Jun 2025 08:58:17 +0200 Subject: [PATCH] Fix Incorrect Api status codes Update Incorrect status code based off the api schema --- backend/routes/users.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/routes/users.js b/backend/routes/users.js index f8ce366c..e41bf6cf 100644 --- a/backend/routes/users.js +++ b/backend/routes/users.js @@ -181,7 +181,7 @@ router return internalUser.setPassword(res.locals.access, payload); }) .then((result) => { - res.status(201) + res.status(200) .send(result); }) .catch(next); @@ -212,7 +212,7 @@ router return internalUser.setPermissions(res.locals.access, payload); }) .then((result) => { - res.status(201) + res.status(200) .send(result); }) .catch(next); @@ -238,7 +238,7 @@ router .post((req, res, next) => { internalUser.loginAs(res.locals.access, {id: parseInt(req.params.user_id, 10)}) .then((result) => { - res.status(201) + res.status(200) .send(result); }) .catch(next);