From 44262e2aaeffc9793d596068cd42d71c8fa0990e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Mon, 16 Sep 2024 22:52:56 +0200 Subject: [PATCH] change initial status code --- server/admin.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/admin.api.js b/server/admin.api.js index 8090153b0..d4f3c1356 100644 --- a/server/admin.api.js +++ b/server/admin.api.js @@ -23,7 +23,7 @@ const mw = { if (!req.get('authorization')) { return res .set('WWW-Authenticate', 'Basic realm="Authorization Required"') - .status(51) + .status(401) .send('Authorization Required'); } const [username, password] = Buffer.from(req.get('authorization').split(' ').pop(), 'base64')