-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.js
47 lines (47 loc) · 796 Bytes
/
const.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
module.exports = {
currency: {
euro: 10,
kuna: 20,
dollar: 30,
},
error: {
http: {
bad_request: 400,
unauthorized: 401,
not_found: 404,
internal: 500,
},
db: {
connection: 600,
read: 700,
write: 800,
delete: 900,
},
user: {
duplicate: 1000,
does_not_exist: 1001,
not_found: 1100,
},
wallet: {
duplicate: 1000,
does_not_exist: 1001,
not_found: 2100,
},
google: {
invalid_token: 5500,
},
transaction: {
does_not_exist: 3001,
not_found: 3100,
},
category: {
duplicate: 4000,
does_not_exist: 4001,
not_found: 4100,
},
},
transactionTypes: {
deposit: 'deposit',
withdrawal: 'withdrawal',
},
}