-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathQNErrorCode.h
68 lines (56 loc) · 1.16 KB
/
QNErrorCode.h
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
//
// QNErrorCode.h
// QiniuSDK
//
// Created by yangsen on 2020/10/21.
// Copyright © 2020 Qiniu. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* StatusCode >= 100 见:https://developer.qiniu.com/kodo/3928/error-responses
* 除上述链接及下面定义外的状态码依据 iOS 标准库定义
*/
/**
* 中途取消的状态码
*/
extern const int kQNRequestCancelled;
/**
* 网络错误状态码
*/
extern const int kQNNetworkError;
/**
* 错误参数状态码
*/
extern const int kQNInvalidArgument;
/**
* 0 字节文件或数据
*/
extern const int kQNZeroDataSize;
/**
* 错误token状态码
*/
extern const int kQNInvalidToken;
/**
* 读取文件错误状态码
*/
extern const int kQNFileError;
/**
* 本地 I/O 错误
*/
extern const int kQNLocalIOError;
/**
* ⽤户劫持错误 错误
*/
extern const int kQNMaliciousResponseError;
/**
* 没有可用的Host 错误【废弃】
*/
extern const int kQNNoUsableHostError NS_UNAVAILABLE;
/**
* SDK 内部错误
*/
extern const int kQNSDKInteriorError;
/**
* 非预期的系统调用 错误
*/
extern const int kQNUnexpectedSysCallError;