add clearer error status codes

This commit is contained in:
Mystikfluu
2022-09-10 17:32:43 +02:00
parent cf9a819a55
commit a763bde1f8
8 changed files with 75 additions and 35 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export const setup = function (router, con, server) {
next();
}
else {
res.status(400);
res.status(402);
res.json({ "error": "you cannot access the api without being logged in" });
}
});