From df11a457f1f830f2c8c96a808b94440c401d884b Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 16 Dec 2024 18:20:41 -0800 Subject: [PATCH] 401 -> 403 --- Server/controllers/authController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }