-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.json
80 lines (80 loc) · 1.83 KB
/
default.json
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
80
{
"ERROR_LANGUAGES": ["http", "Something else"],
"ERRORS": {
"MatchError": {
"CODE": 100,
"DEFAULT_MESSAGE": "There is no match for provided parameters",
"HTTP_CODE": 404
},
"ServiceError": {
"CODE": 101,
"DEFAULT_MESSAGE": "Error happend related to the third party service",
"HTTP_CODE": 500
},
"DatabaseError": {
"CODE": 102,
"DEFAULT_MESSAGE": "Database query failed",
"HTTP_CODE": 500
},
"ValidationError": {
"CODE": 103,
"DEFAULT_MESSAGE": "The provided data is not valid",
"HTTP_CODE": 400
},
"UserNotFoundError": {
"CODE": 104,
"DEFAULT_MESSAGE": "User not found in Database",
"HTTP_CODE": 404
},
"AuthError": {
"CODE": 105,
"DEFAULT_MESSAGE": "Authentication is required",
"HTTP_CODE": 401
},
"SystemError": {
"CODE": 106,
"DEFAULT_MESSAGE": "Internal system error occured",
"HTTP_CODE": 500
},
"ConnectionError": {
"CODE": 107,
"DEFAULT_MESSAGE": "Connection to provided system failed",
"HTTP_CODE": 500
},
"InfiniteLoopError": {
"CODE": 108,
"DEFAULT_MESSAGE": "Amount of itereation exceeded the limit",
"HTTP_CODE": 500
},
"WrongDataTypeError": {
"CODE": 109,
"DEFAULT_MESSAGE": "The provided data does not have appropriate data type",
"HTTP_CODE": 400
},
"RangeError": {
"CODE": 110,
"DEFAULT_MESSAGE": "Range error occured",
"HTTP_CODE": 400
},
"MissingValuesError": {
"CODE": 111,
"DEFAULT_MESSAGE": "Some required values are missing",
"HTTP_CODE": 400
},
"DataNotFoundError": {
"CODE": 112,
"DEFAULT_MESSAGE": "Data is not found",
"HTTP_CODE": 404
},
"MemcachedError": {
"CODE": 113,
"DEFAULT_MESSAGE": "Memory cache error",
"HTTP_CODE": 500
},
"AccessDeniedError": {
"CODE": 114,
"DEFAULT_MESSAGE": "Access denied for specified operation",
"HTTP_CODE": 401
}
}
}