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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
| const FACEERROR = [
| // 接口流控及鉴权错误码
| {
| key: 4,
| en_msg: 'Open api request limit reached',
| msg: '集群超限额',
| },
| {
| key: 6,
| en_msg: 'no permission to access data',
| msg: '没有接口权限',
| },
| {
| key: 17,
| en_msg: 'Open api daily request limit reached',
| msg: '每天流量超限额',
| },
| {
| key: 18,
| en_msg: 'Open api qps request limit reached',
| msg: 'QPS超限额',
| },
| {
| key: 19,
| en_msg: 'Open api total request limit reached',
| msg: '请求总量超限额',
| },
| {
| key: 100,
| en_msg: 'Invalid parameter',
| msg: '无效的access_token参数',
| },
| {
| key: 110,
| en_msg: 'Access token expired',
| msg: 'Access token过期',
| },
| // 通用及业务错误码
| {
| key: 22201,
| en_msg: 'param[] is null',
| msg: '必要参数未传入',
| },
| {
| key: 222002,
| en_msg: 'param[start] format error',
| msg: '参数格式错误',
| },
| {
| key: 222003,
| en_msg: 'param[length] format error',
| msg: '参数格式错误',
| },
| {
| key: 222004,
| en_msg: 'param[op_app_id_list] format error',
| msg: '参数格式错误',
| },
| {
| key: 222005,
| en_msg: 'param[group_id_list] format error',
| msg: '参数格式错误',
| },
| {
| key: 222006,
| en_msg: 'group_id format error',
| msg: '参数格式错误',
| },
| {
| key: 222007,
| en_msg: 'uid format error',
| msg: '参数格式错误',
| },
| {
| key: 222008,
| en_msg: 'face_id format error',
| msg: '参数格式错误',
| },
| {
| key: 222009,
| en_msg: 'quality_conf format error',
| msg: '参数格式错误',
| },
| {
| key: 222010,
| en_msg: 'user_info format error',
| msg: '参数格式错误',
| },
| {
| key: 222011,
| en_msg: 'param[uid_list] format error',
| msg: '参数格式错误',
| },
| {
| key: 222012,
| en_msg: 'param[op_app_id] format error',
| msg: '参数格式错误',
| },
| {
| key: 222013,
| en_msg: 'param[image] format error',
| msg: '参数格式错误',
| },
| {
| key: 222014,
| en_msg: 'param[app_id] format error',
| msg: '参数格式错误',
| },
| {
| key: 222015,
| en_msg: 'param[image_type] format error',
| msg: '参数格式错误',
| },
| {
| key: 222016,
| en_msg: 'param[max_face_num] format error',
| msg: '参数格式错误',
| },
| {
| key: 222017,
| en_msg: 'param[face_field] format error',
| msg: '参数格式错误',
| },
| {
| key: 222018,
| en_msg: 'param[user_id] format error',
| msg: '参数格式错误',
| },
| {
| key: 222019,
| en_msg: 'param[quality_control] format error',
| msg: '参数格式错误',
| },
| {
| key: 222020,
| en_msg: 'param[liveness_control] format error',
| msg: '参数格式错误',
| },
| {
| key: 222021,
| en_msg: 'param[max_user_num] format error',
| msg: '参数格式错误',
| },
| {
| key: 222022,
| en_msg: 'param[id_card_number] format error',
| msg: '参数格式错误',
| },
| {
| key: 222023,
| en_msg: 'param[name] format error',
| msg: '参数格式错误',
| },
| {
| key: 222024,
| en_msg: 'param[face_type] format error',
| msg: '参数格式错误',
| },
| {
| key: 222025,
| en_msg: 'param[face_token] format error',
| msg: '参数格式错误',
| },
| {
| key: 222026,
| en_msg: 'param[max_star_num] format error',
| msg: '参数格式错误',
| },
| {
| key: 222027,
| en_msg: 'code length param error',
| msg: '验证码长度错误(最小值大于最大值)',
| },
| {
| key: 222028,
| en_msg: 'param[min_code_length] format error',
| msg: '参数格式错误',
| },
| {
| key: 222029,
| en_msg: 'param[max_code_length] format error',
| msg: '参数格式错误',
| },
| {
| key: 222030,
| en_msg: 'param[match_threshold] format error',
| msg: '参数格式错误',
| },
| {
| key: 222200,
| en_msg: 'request body should be json format',
| msg: '该接口需使用application/json的格式进行请求',
| },
| {
| key: 222201,
| en_msg: 'network not available',
| msg: '服务端请求失败',
| },
| {
| key: 222202,
| en_msg: 'pic not has face',
| msg: '图片中没有人脸',
| },
| {
| key: 222203,
| en_msg: 'image check fail',
| msg: '无法解析人脸',
| },
| {
| key: 222204,
| en_msg: 'image_url_download_fail',
| msg: '从图片的url下载图片失败',
| },
| {
| key: 222205,
| en_msg: 'network not availablel',
| msg: '服务端请求失败',
| },
| {
| key: 222206,
| en_msg: 'rtse service return fail',
| msg: '服务端请求失败',
| },
| {
| key: 222207,
| en_msg: 'match user is not found',
| msg: '未找到匹配的用户',
| },
| {
| key: 222208,
| en_msg: 'the number of image is incorrect',
| msg: '图片的数量错误',
| },
| {
| key: 222209,
| en_msg: 'face token not exist',
| msg: 'face token不存在',
| },
| {
| key: 222210,
| en_msg: "the number of user's faces is beyond the limit",
| msg: '人脸库中用户下的人脸数目超过限制',
| },
| {
| key: 222300,
| en_msg: 'add face fail',
| msg: '人脸图片添加失败',
| },
| {
| key: 222301,
| en_msg: 'get face fail',
| msg: '获取人脸图片失败',
| },
| {
| key: 222302,
| en_msg: 'system error',
| msg: '服务端请求失败',
| },
| {
| key: 222303,
| en_msg: 'get face fail',
| msg: '获取人脸图片失败',
| },
| {
| key: 223100,
| en_msg: 'group is not exist',
| msg: '操作的用户组不存在',
| },
| {
| key: 223101,
| en_msg: 'group is already exist',
| msg: '该用户组已存在',
| },
| {
| key: 223102,
| en_msg: 'user is already exist',
| msg: '该用户已存在',
| },
| {
| key: 223103,
| en_msg: 'user is not exist',
| msg: '找不到该用户',
| },
| {
| key: 223104,
| en_msg: 'group_list is too large',
| msg: 'group_list包含组数量过多',
| },
| {
| key: 223105,
| en_msg: 'face is already exist',
| msg: '该人脸已存在',
| },
| {
| key: 223106,
| en_msg: 'face is not exist',
| msg: '该人脸不存在',
| },
| {
| key: 223110,
| en_msg: 'uid_list is too large',
| msg: 'uid_list包含数量过多',
| },
| {
| key: 223111,
| en_msg: 'dst group is not exist',
| msg: '目标用户组不存在',
| },
| {
| key: 223112 ,
| en_msg: 'quality_conf format error',
| msg: 'quality_conf格式不正确',
| },
| {
| key: 223113,
| en_msg: 'face is covered',
| msg: '人脸有被遮挡',
| },
| {
| key: 223114,
| en_msg: 'ace is fuzzy',
| msg: '人脸模糊',
| },
| {
| key: 223115,
| en_msg: 'face light is not good',
| msg: '人脸光照不好',
| },
| {
| key: 223116,
| en_msg: 'incomplete face',
| msg: '人脸不完整',
| },
| {
| key: 223117,
| en_msg: 'app_list is too large',
| msg: 'app_list包含app数量过多',
| },
| {
| key: 223118,
| en_msg: 'quality control error',
| msg: '质量控制项错误',
| },
| {
| key: 223119,
| en_msg: ' liveness control item error',
| msg: '活体控制项错误',
| },
| {
| key: 223120,
| en_msg: 'liveness check fail',
| msg: '活体检测未通过',
| },
| {
| key: 223121,
| en_msg: 'left eye is occlusion',
| msg: '质量检测未通过 左眼遮挡程度过高',
| },
| {
| key: 223122,
| en_msg: 'right eye is occlusion',
| msg: '质量检测未通过 右眼遮挡程度过高',
| },
| {
| key: 223123,
| en_msg: 'left cheek is occlusion',
| msg: '质量检测未通过 左脸遮挡程度过高',
| },
| {
| key: 223124,
| en_msg: 'right cheek is occlusion',
| msg: '质量检测未通过 右脸遮挡程度过高',
| },
| {
| key: 223125,
| en_msg: 'chin contour is occlusion',
| msg: '质量检测未通过 下巴遮挡程度过高',
| },
| {
| key: 223126,
| en_msg: 'nose is occlusion',
| msg: '质量检测未通过 鼻子遮挡程度过高',
| },
| {
| key: 223127,
| en_msg: 'mouth is occlusion',
| msg: '质量检测未通过 嘴巴遮挡程度过高',
| },
| {
| key: 222901,
| en_msg: 'system busy',
| msg: '参数校验初始化失败',
| },
| {
| key: 222902,
| en_msg: 'system busy',
| msg: '参数校验初始化失败',
| },
| {
| key: 222903,
| en_msg: 'system busy',
| msg: '参数校验初始化失败',
| },
| {
| key: 222904,
| en_msg: 'system busy',
| msg: '参数校验初始化失败',
| },
| {
| key: 222905,
| en_msg: 'system busy',
| msg: '接口初始化失败',
| },
| {
| key: 222906,
| en_msg: 'system busy',
| msg: '接口初始化失败',
| },
| {
| key: 222907,
| en_msg: 'system busy',
| msg: '缓存处理失败',
| },
| {
| key: 222908,
| en_msg: 'system busy',
| msg: '缓存处理失败',
| },
| {
| key: 222909,
| en_msg: 'system busy',
| msg: '缓存处理失败',
| },
| {
| key: 222910,
| en_msg: 'system busy',
| msg: '数据存储处理失败',
| },
| {
| key: 222911,
| en_msg: 'system busy',
| msg: '数据存储处理失败',
| },
| {
| key: 222912,
| en_msg: 'system busy',
| msg: '数据存储处理失败',
| },
| {
| key: 222913,
| en_msg: 'system busy',
| msg: '接口初始化失败',
| },
| {
| key: 222914,
| en_msg: 'system busy',
| msg: '接口初始化失败',
| },
| {
| key: 222915,
| en_msg: 'system busy',
| msg: '后端服务连接失败',
| },
| {
| key: 222916,
| en_msg: 'system busy',
| msg: '后端服务连接失败',
| },
| {
| key: 222304,
| en_msg: 'image size is too large',
| msg: '图片尺寸太大',
| },
| {
| key: 222305,
| en_msg: 'pic storage not support',
| msg: '当前版本不支持图片存储',
| },
| {
| key: 223128,
| en_msg: 'group was deleting',
| msg: '正在清理该用户组的数据',
| },
| {
| key: 222361,
| en_msg: 'system busy',
| msg: '公安服务连接失败',
| },
| {
| key: 222046,
| en_msg: 'param[template_type] format error',
| msg: '参数格式错误',
| },
| {
| key: 222101,
| en_msg: 'param[merge_degree] format error',
| msg: '参数格式错误',
| },
| {
| key: 222102,
| en_msg: 'param[face_location] format error',
| msg: '参数格式错误',
| },
| {
| key: 222307,
| en_msg: 'image illegal, reason: porn',
| msg: '图片非法 鉴黄未通过',
| },
| {
| key: 222308,
| en_msg: 'image illegal, reason: sensitive person',
| msg: '图片非法 含有政治敏感人物',
| },
| {
| key: 222211,
| en_msg: 'template image quality reject',
| msg: '人脸融合失败 模板图质量不合格',
| },
| {
| key: 222212,
| en_msg: 'merge face fail',
| msg: '人脸融合失败',
| },
| {
| key: 223129,
| en_msg: 'face not forward',
| msg: '人脸未面向正前方(人脸的角度信息大于30度)',
| },
| ];
|
|
|
| export default FACEERROR;
|
|