mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:21:58 +08:00
19 lines
401 B
JavaScript
19 lines
401 B
JavaScript
const { TalkError } = require('errors');
|
|
|
|
// ErrDownloadToken is returned in the event that the download is requested
|
|
// without a valid token.
|
|
class ErrDownloadToken extends TalkError {
|
|
constructor(err) {
|
|
super(
|
|
'Token is invalid',
|
|
{
|
|
translation_key: 'DOWNLOAD_TOKEN_INVALID',
|
|
status: 400,
|
|
},
|
|
{ err }
|
|
);
|
|
}
|
|
}
|
|
|
|
module.exports = { ErrDownloadToken };
|