add error code for invalid login cookie
This commit is contained in:
parent
21cfc8218b
commit
f90c093075
@ -1,4 +1,5 @@
|
||||
400: generic error / unsorted
|
||||
401: login error (invalid cookie)
|
||||
402: login error (bad cookie)
|
||||
403: login error (no cookie)
|
||||
404: invalid url / not found
|
||||
|
@ -33,7 +33,7 @@ function getunsigned(req, res) {
|
||||
let unsigned = unsign(cookie, req, res);
|
||||
if (!unsigned) {
|
||||
try {
|
||||
res.status(402);
|
||||
res.status(401);
|
||||
res.json({ "error": "Bad auth cookie set" });
|
||||
}
|
||||
catch (ignored) { } //sometimes it errors, gotta debug soon
|
||||
|
Loading…
x
Reference in New Issue
Block a user