diff --git a/Server/controllers/authController.js b/Server/controllers/authController.js index 1fba9c92f..fb48796df 100644 --- a/Server/controllers/authController.js +++ b/Server/controllers/authController.js @@ -284,7 +284,7 @@ const editUser = async (req, res, next) => { // If not a match, throw a 401 if (!match) { const error = new Error(errorMessages.AUTH_INCORRECT_PASSWORD); - error.status = 401; + error.status = 403; next(error); return; }