File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ Example of correct request:
12
12
}
13
13
```
14
14
15
+ Response is also HTTP with JSON and status code depending on whether
16
+ error happened or not.
17
+
18
+ * 200 if there wasn't error
19
+ * 400 if you sent bad request
20
+ * 500 if there was error during execution your request or in some
21
+ other cases
22
+
23
+ status_code is also duplicated in JSON body.
24
+
15
25
## Possible keys
16
26
17
27
* ` model ` - specifies what you will work with.
@@ -85,7 +95,8 @@ Response
85
95
86
96
],
87
97
"has_more" : true ,
88
- "status" : " ok"
98
+ "status" : " ok" ,
99
+ "status_code" : 200
89
100
}
90
101
```
91
102
@@ -113,8 +124,9 @@ Response:
113
124
114
125
``` json
115
126
{
116
- "error_message" : " " Model \"user\" doesn't exist or isn't allowed",
117
- "status" : " error"
127
+ "error_message" : " Model \" user\" doesn't exist or isn't allowed" ,
128
+ "status" : " error" ,
129
+ "status_code" : 400
118
130
}
119
131
```
120
132
You can’t perform that action at this time.
0 commit comments