Add error id for expired auth tokens

This commit is contained in:
KernelDeimos 2024-05-15 15:42:00 -04:00
parent 21444daefb
commit c70e378973

View File

@ -319,6 +319,10 @@ module.exports = class APIError {
status: 401, status: 401,
message: 'This authentication token is not supported here.', message: 'This authentication token is not supported here.',
}, },
'token_expired': {
status: 401,
message: 'Authentication token has expired.',
},
'account_suspended': { 'account_suspended': {
status: 403, status: 403,
message: 'Account suspended.', message: 'Account suspended.',