QNErrorCode.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // QNErrorCode.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2020/10/21.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * StatusCode >= 100 见:https://developer.qiniu.com/kodo/3928/error-responses
  11. * 除上述链接及下面定义外的状态码依据 iOS 标准库定义
  12. */
  13. /**
  14. * 中途取消的状态码
  15. */
  16. extern const int kQNRequestCancelled;
  17. /**
  18. * 网络错误状态码
  19. */
  20. extern const int kQNNetworkError;
  21. /**
  22. * 错误参数状态码
  23. */
  24. extern const int kQNInvalidArgument;
  25. /**
  26. * 0 字节文件或数据
  27. */
  28. extern const int kQNZeroDataSize;
  29. /**
  30. * 错误token状态码
  31. */
  32. extern const int kQNInvalidToken;
  33. /**
  34. * 读取文件错误状态码
  35. */
  36. extern const int kQNFileError;
  37. /**
  38. * 本地 I/O 错误
  39. */
  40. extern const int kQNLocalIOError;
  41. /**
  42. * ⽤户劫持错误 错误
  43. */
  44. extern const int kQNMaliciousResponseError;
  45. /**
  46. * 没有可用的Host 错误【废弃】
  47. */
  48. extern const int kQNNoUsableHostError NS_UNAVAILABLE;
  49. /**
  50. * SDK 内部错误
  51. */
  52. extern const int kQNSDKInteriorError;
  53. /**
  54. * 非预期的系统调用 错误
  55. */
  56. extern const int kQNUnexpectedSysCallError;