-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.json
More file actions
68 lines (68 loc) · 1.53 KB
/
Copy patherrors.json
File metadata and controls
68 lines (68 loc) · 1.53 KB
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
{
"401_invalid_api_key": {
"request": "GET /api/v1/facebook/post?api_key=totally_invalid_key_123&url=<permalink>",
"status": 401,
"body": {
"error": {
"code": "INVALID_API_KEY",
"message": "Api key not recognised."
}
}
},
"400_missing_params": {
"request": "GET /api/v1/facebook/post?api_key=<key>",
"status": 400,
"body": {
"error": "invalid_params",
"issues": [
{
"code": "custom",
"message": "url, or page + post_id, is required",
"path": []
}
]
}
},
"400_bad_country": {
"request": "GET /api/v1/facebook/post?api_key=<key>&url=<permalink>&country=usa",
"status": 400,
"body": {
"error": "invalid_params",
"issues": [
{
"code": "too_big",
"maximum": 2,
"type": "string",
"inclusive": true,
"exact": true,
"message": "String must contain exactly 2 character(s)",
"path": [
"country"
]
}
]
}
},
"400_empty_url": {
"request": "GET /api/v1/facebook/post?api_key=<key>&url=",
"status": 400,
"body": {
"error": "invalid_params",
"issues": [
{
"validation": "url",
"code": "invalid_string",
"message": "Invalid url",
"path": [
"url"
]
},
{
"code": "custom",
"message": "url, or page + post_id, is required",
"path": []
}
]
}
}
}