1. 高德地图错误码对照 https://lbs.amap.com/api/android-sdk/guide/map-tools/error-code
  2. aliyun天气错误码 https://help.aliyun.com/document_detail/400584.html
  3. 小程序错误码对照 https://opendocs.alipay.com/mini/00nmrr
  4. http错误码对照 https://cloud.tencent.com/developer/article/1045037
  5. 钉钉错误码 https://open.dingtalk.com/document/orgapp-server/server-api-error-codes-1
    1. https://help.fanruan.com/finebi/doc-view-1255.html
  6. mysql错误码对照 https://herbertgaoo.github.io/2021/06/mysql_error_code/
  7. errno错误码对照 https://www.programminghunter.com/article/98031106992/
  8. 电信错误码对照 https://support.dun.163.com/documents/287305921855672320?docId=314946816851496960

网络错误

未知错误
NSURLErrorUnknown = -1,

网络未连接,请检查网络
NSURLErrorCannotConnectToHost = -1004,
NSURLErrorCannotFindHost = -1003,
NSURLErrorNotConnectedToInternet = -1009,

当前网络不佳,请稍后重试
NSURLErrorTimedOut = -1001
NSURLErrorCannotLoadFromNetwork = -2000,

请求失败,请重试
NSURLErrorCancelled = -999

服务器错误
NSURLErrorBadServerResponse = -1011,
NSURLErrorResourceUnavailable = -1008,

服务器返回异常
NSURLErrorServerCertificateHasBadDate = -1201,
NSURLErrorCannotDecodeRawData = -1015,
NSURLErrorCannotDecodeContentData = -1016,

失去连接,请重试
NSURLErrorNetworkConnectionLost = -1005,

下载失败
NSURLErrorDownloadDecodingFailedMidStream = -3006,
NSURLErrorDownloadDecodingFailedToComplete = -3007

非法url
NSURLErrorBadURL = -1000,
NSURLErrorUnsupportedURL = -1002

  1. NSFileNoSuchFileError = 4,
  2. NSFileLockingError = 255,
  3. NSFileReadUnknownError = 256,
  4. NSFileReadNoPermissionError = 257,
  5. NSFileReadInvalidFileNameError = 258,
  6. NSFileReadCorruptFileError = 259,
  7. NSFileReadNoSuchFileError = 260,
  8. NSFileReadInapplicableStringEncodingError = 261,
  9. NSFileReadUnsupportedSchemeError = 262,
  10. NSFileReadTooLargeError = 263,
  11. NSFileReadUnknownStringEncodingError = 264,
  12. NSFileWriteUnknownError = 512,
  13. NSFileWriteNoPermissionError = 513,
  14. NSFileWriteInvalidFileNameError = 514,
  15. NSFileWriteInapplicableStringEncodingError = 517,
  16. NSFileWriteUnsupportedSchemeError = 518,
  17. NSFileWriteOutOfSpaceError = 640,
  18. NSFileWriteVolumeReadOnlyError = 642m
  19. NSKeyValueValidationError = 1024,
  20. NSFormattingError = 2048,
  21. NSUserCancelledError = 3072,
  22. NSFileErrorMinimum = 0,
  23. NSFileErrorMaximum = 1023,
  24. NSValidationErrorMinimum = 1024,
  25. NSValidationErrorMaximum = 2047,
  26. NSFormattingErrorMinimum = 2048,
  27. NSFormattingErrorMaximum = 2559,
  28. NSPropertyListReadCorruptError = 3840,
  29. NSPropertyListReadUnknownVersionError = 3841,
  30. NSPropertyListReadStreamError = 3842,
  31. NSPropertyListWriteStreamError = 3851,
  32. NSPropertyListErrorMinimum = 3840,
  33. NSPropertyListErrorMaximum = 4095
  34. NSExecutableErrorMinimum = 3584,
  35. NSExecutableNotLoadableError = 3584,
  36. NSExecutableArchitectureMismatchError = 3585,
  37. NSExecutableRuntimeMismatchError = 3586,
  38. NSExecutableLoadError = 3587,
  39. NSExecutableLinkError = 3588,
  40. NSExecutableErrorMaximum = 3839,

https://blog.csdn.net/sinat_29949283/article/details/48057311
http://www.javashuo.com/article/p-fmwczvis-hk.html