-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.json
50 lines (50 loc) · 1.46 KB
/
errors.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
{
"UNKNOWN_ROUTE": {
"code": 404,
"message": "Unknown route"
},
"UNPROCESSABLE_ENTITY": {
"code": 422,
"message": "Unprocessable entity"
},
"INTERNAL_ERROR": {
"code": 500,
"message": "Internal error"
},
"AKEY_GENERATION": {
"code": 409,
"message": "An error occured trying to generate new AKey"
},
"AKEY_ALREADY_REGISTERED": {
"code": 409,
"message": "Provided AKey has already been registered"
},
"INVALID_PASSWORD": {
"code": 400,
"message": "Password invalid. It must be a string with at least 6 characters"
},
"AKEY_NOT_REGISTERED": {
"code": 404,
"message": "Provided AKey has not been registered"
},
"MISSING_AUTHORIZATION": {
"code": 400,
"message": "Missing authorization header. Ensure that API Key is provided as Bearer token within Authorization header"
},
"UNKNOWN_AUTHORIZATION": {
"code": 404,
"message": "Authorization key invalid or not found. Ensure to send a Bearer Token within Authorization header"
},
"UNAUTHORIZED": {
"code": 401,
"message": "Invalid credentials"
},
"MISSING_AUTHENTICATION": {
"code": 400,
"message": "Missing authentication header. Ensure that AKey token is provided within Authentication header"
},
"INVALID_TOKEN": {
"code": 401,
"message": "Invalid token"
}
}