|
1 | 1 | { |
2 | | - "INTERNAL_ERROR": { |
3 | | - "status_code": 500, |
4 | | - "message": "Internal Error!" |
5 | | - }, |
6 | | - "NOT_FOUND": { |
7 | | - "status_code": 404, |
8 | | - "message": "Not found!" |
9 | | - }, |
10 | | - "ACTION_NOT_FOUND": { |
11 | | - "status_code": 404, |
12 | | - "message": "Not found!" |
13 | | - }, |
14 | | - "SEND_CODE_INTERNAL_ERROR": { |
15 | | - "status_code": 500, |
16 | | - "message": "Internal error when sending verification code!" |
17 | | - }, |
18 | | - "VERIFY_CODE_NOT_SENDED": { |
19 | | - "status_code": 410, |
20 | | - "message": "No verification code is sended to this email!" |
21 | | - }, |
22 | | - "VERIFY_CODE_NOT_VALID": { |
23 | | - "status_code": 400, |
24 | | - "message": "Verification code is not valid!" |
25 | | - }, |
26 | | - "VERIFY_CODE_ALREADY_USED": { |
27 | | - "status_code": 410, |
28 | | - "message": "Verification code is already used!" |
29 | | - }, |
30 | | - "VERIFY_CODE_EXPIRED": { |
31 | | - "status_code": 410, |
32 | | - "message": "Verification code is expired!" |
33 | | - }, |
34 | | - "CANT_GENERATE_TOKEN": { |
35 | | - "status_code": 500, |
36 | | - "message": "Can't generate token!" |
37 | | - }, |
38 | | - "ORGANIZATION_NAME_NOT_AVAILABLE": { |
39 | | - "status_code": 404, |
40 | | - "message": "Organization name is already in use by another account!" |
41 | | - }, |
42 | | - "PERMISSION_CONDITION_VALUE_NOT_VALID": { |
43 | | - "status_code": 400, |
44 | | - "message": "Permission condition value is not valid!" |
45 | | - }, |
46 | | - "AUTHZ_CONDITION_VALUE_NOT_DEFINED": { |
47 | | - "status_code": 404, |
48 | | - "message": "Authz condition value is not defined!" |
49 | | - }, |
50 | | - "MODEL_ATTRIBUTE_NOT_DEFINED": { |
51 | | - "status_code": 404, |
52 | | - "message": "Model attribute value is not defined!" |
53 | | - }, |
54 | | - "VALIDATION_ERROR": { |
55 | | - "status_code": 400, |
56 | | - "message": "Request data is not valid" |
57 | | - }, |
58 | | - "FILTER_SORT_VALUE_NOT_DEFINED": { |
59 | | - "status_code": 404, |
60 | | - "message": "Filter sort value is not defined!" |
61 | | - }, |
62 | | - "AUTHN_TOKEN_NOT_FOUND": { |
63 | | - "status_code": 401, |
64 | | - "message": "Token required!" |
65 | | - }, |
66 | | - "AUTHN_TOKEN_INVALID": { |
67 | | - "status_code": 401, |
68 | | - "message": "Token invalid!" |
69 | | - }, |
70 | | - "AUTHZ_PERMISSION_DENIED": { |
71 | | - "status_code": 403, |
72 | | - "message": "Permission denied!" |
73 | | - }, |
74 | | - "UUID_ERROR": { |
75 | | - "status_code": 400, |
76 | | - "message": "Invalid UUID!" |
77 | | - }, |
78 | | - "PHRASE_NOT_FOUND": { |
79 | | - "status_code": 404, |
80 | | - "message": "Phrase not found!" |
81 | | - }, |
82 | | - "BAD_PATH": { |
83 | | - "status_code": 400, |
84 | | - "message": "Path format is not correct!" |
85 | | - } |
| 2 | + "INTERNAL_ERROR": { |
| 3 | + "status_code": 500, |
| 4 | + "message": "Internal Error!" |
| 5 | + }, |
| 6 | + "NOT_FOUND": { |
| 7 | + "status_code": 404, |
| 8 | + "message": "Not found!" |
| 9 | + }, |
| 10 | + "ACTION_NOT_FOUND": { |
| 11 | + "status_code": 404, |
| 12 | + "message": "Not found!" |
| 13 | + }, |
| 14 | + "SEND_CODE_INTERNAL_ERROR": { |
| 15 | + "status_code": 500, |
| 16 | + "message": "Internal error when sending verification code!" |
| 17 | + }, |
| 18 | + "VERIFY_CODE_NOT_SENDED": { |
| 19 | + "status_code": 410, |
| 20 | + "message": "No verification code is sended to this email!" |
| 21 | + }, |
| 22 | + "VERIFY_CODE_NOT_VALID": { |
| 23 | + "status_code": 400, |
| 24 | + "message": "Verification code is not valid!" |
| 25 | + }, |
| 26 | + "VERIFY_CODE_ALREADY_USED": { |
| 27 | + "status_code": 410, |
| 28 | + "message": "Verification code is already used!" |
| 29 | + }, |
| 30 | + "VERIFY_CODE_EXPIRED": { |
| 31 | + "status_code": 410, |
| 32 | + "message": "Verification code is expired!" |
| 33 | + }, |
| 34 | + "CANT_GENERATE_TOKEN": { |
| 35 | + "status_code": 500, |
| 36 | + "message": "Can't generate token!" |
| 37 | + }, |
| 38 | + "ORGANIZATION_NAME_NOT_AVAILABLE": { |
| 39 | + "status_code": 404, |
| 40 | + "message": "Organization name is already in use by another account!" |
| 41 | + }, |
| 42 | + "PERMISSION_CONDITION_VALUE_NOT_VALID": { |
| 43 | + "status_code": 400, |
| 44 | + "message": "Permission condition value is not valid!" |
| 45 | + }, |
| 46 | + "AUTHZ_CONDITION_VALUE_NOT_DEFINED": { |
| 47 | + "status_code": 404, |
| 48 | + "message": "Authz condition value is not defined!" |
| 49 | + }, |
| 50 | + "MODEL_ATTRIBUTE_NOT_DEFINED": { |
| 51 | + "status_code": 404, |
| 52 | + "message": "Model attribute value is not defined!" |
| 53 | + }, |
| 54 | + "VALIDATION_ERROR": { |
| 55 | + "status_code": 400, |
| 56 | + "message": "Request data is not valid" |
| 57 | + }, |
| 58 | + "FILTER_SORT_VALUE_NOT_DEFINED": { |
| 59 | + "status_code": 404, |
| 60 | + "message": "Filter sort value is not defined!" |
| 61 | + }, |
| 62 | + "AUTHN_TOKEN_NOT_FOUND": { |
| 63 | + "status_code": 401, |
| 64 | + "message": "Token required!" |
| 65 | + }, |
| 66 | + "AUTHN_TOKEN_INVALID": { |
| 67 | + "status_code": 401, |
| 68 | + "message": "Token invalid!" |
| 69 | + }, |
| 70 | + "AUTHZ_PERMISSION_DENIED": { |
| 71 | + "status_code": 403, |
| 72 | + "message": "Permission denied!" |
| 73 | + }, |
| 74 | + "UUID_ERROR": { |
| 75 | + "status_code": 400, |
| 76 | + "message": "Invalid UUID!" |
| 77 | + }, |
| 78 | + "PHRASE_NOT_FOUND": { |
| 79 | + "status_code": 404, |
| 80 | + "message": "Phrase not found!" |
| 81 | + }, |
| 82 | + "BAD_PATH": { |
| 83 | + "status_code": 400, |
| 84 | + "message": "Path format is not correct!" |
| 85 | + }, |
| 86 | + "NO_BISMILLAH": { |
| 87 | + "status_code": 400, |
| 88 | + "message": "Doesn't have bismillah!" |
| 89 | + } |
86 | 90 | } |
0 commit comments