-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathstatus.js
79 lines (76 loc) · 2.17 KB
/
status.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* VITacademics
* Copyright (C) 2014-2016 Aneesh Neelam <[email protected]>
* Copyright (C) 2014-2016 Ayush Agarwal <[email protected]>
*
* This file is part of VITacademics.
*
* VITacademics is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VITacademics is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VITacademics. If not, see <http://www.gnu.org/licenses/>.
*/
'use strict';
const status = {
success: {
message: 'Successful execution',
code: 0
},
timedOut: {
message: 'Session timed out',
code: 11
},
invalid: {
message: 'Invalid credentials',
code: 12
},
captchaParsing: {
message: 'Error parsing captcha',
code: 13
},
tokenExpired: {
message: 'Token expired',
code: 14
},
noData: {
message: 'Requested data is not available',
code: 15
},
dataParsing: {
message: 'Error parsing data or invalid credentials',
code: 16
},
toDo: {
message: 'This feature is incomplete, please help us by contributing to its development',
code: 50
},
deprecated: {
message: 'This feature or endpoint has been deprecated, please bear with us while we upgrade your app',
code: 60
},
vitDown: {
message: 'VIT\'s Servers may be slow/down or we may be facing a connectivity Issue',
code: 89
},
mongoDown: {
message: 'Our MongoDB instances may be Down or We may be facing a connectivity Issue',
code: 97
},
maintenance: {
message: 'Our API servers are down for maintenance, please bear with us while we do what we do best',
code: 98
},
other: {
message: 'An unforeseen/unknown/irrecoverable error has occurred, please bear with us while we fix it',
code: 99
}
};
module.exports = status;