通用 HTTP 错误码
| 错误码 | 错误码名称 | 
| 400 | Bad Request | 
| 401 | Unauthorized | 
| 402 | Payment Required | 
| 403 | Forbidden | 
| 404 | Not Found | 
| 405 | Method Not Allowed | 
| 406 | Not Acceptable | 
| 407 | Proxy Authentication Required | 
| 408 | Request Time-out | 
| 409 | Conflict | 
| 410 | Gone | 
| 411 | Length Required | 
| 412 | Precondition Failed | 
| 413 | Request Entity Too Large | 
| 414 | Request-URI Too Large | 
| 415 | Unsupported Media Type | 
| 416 | Requested range not satisfiable | 
| 417 | Expectation Failed | 
| 500 | Internal Server Error | 
| 501 | Not Implemented | 
| 502 | Bad Gateway | 
| 503 | Service Unavailable | 
| 504 | Gateway Time-out | 
| 505 | http version not supported | 
Android 网络错误码
| 错误码 | 错误码名称 | 
| -1 | Generic error | 
| -2 | Server or proxy hostname lookup failed | 
| -3 | Unsupported authentication scheme (not basic or digest) | 
| -4 | User authentication failed on server | 
| -5 | User authentication failed on proxy | 
| -6 | Failed to connect to the server | 
| -7 | Failed to read or write to the server | 
| -8 | Connection timed out | 
| -9 | Too many redirects | 
| -10 | Unsupported URI scheme | 
| -11 | Failed to perform SSL handshake | 
| -12 | Malformed URL | 
| -13 | Generic file error | 
| -14 | File not found | 
| -15 | Too many requests during this load | 
| -16 | Resource load was cancelled by Safe Browsing | 
| 1 | The certificate has expired | 
| 2 | Hostname mismatch | 
| 3 | The certificate authority is not trusted | 
| 4 | The date of the certificate is invalid | 
| 5 | A generic error occurred | 
iOS 网络错误码
| 错误码 | 错误码名称 | 
| -1 | NSURLErrorUnknown | 
| -995 | NSURLErrorBackgroundSessionRequiresSharedContainer | 
| -996 | NSURLErrorBackgroundSessionInUseByAnotherProcess | 
| -997 | NSURLErrorBackgroundSessionWasDisconnected | 
| -999 | NSURLErrorCancelled | 
| -1000 | NSURLErrorBadURL | 
| -1001 | NSURLErrorTimedOut | 
| -1002 | NSURLErrorUnsupportedURL | 
| -1003 | NSURLErrorCannotFindHost | 
| -1004 | NSURLErrorCannotConnectToHost | 
| -1005 | NSURLErrorNetworkConnectionLost | 
| -1006 | NSURLErrorDNSLookupFailed | 
| -1007 | NSURLErrorHTTPTooManyRedirects | 
| -1008 | NSURLErrorResourceUnavailable | 
| -1009 | NSURLErrorNotConnectedToInternet | 
| -1010 | NSURLErrorRedirectToNonExistentLocation | 
| -1011 | NSURLErrorBadServerResponse | 
| -1012 | NSURLErrorUserCancelledAuthentication | 
| -1013 | NSURLErrorUserAuthenticationRequired | 
| -1014 | NSURLErrorZeroByteResource | 
| -1015 | NSURLErrorCannotDecodeRawData | 
| -1016 | NSURLErrorCannotDecodeContentData | 
| -1017 | NSURLErrorCannotParseResponse | 
| -1018 | NSURLErrorInternationalRoamingOff | 
| -1019 | NSURLErrorCallIsActive | 
| -1020 | NSURLErrorDataNotAllowed | 
| -1021 | NSURLErrorRequestBodyStreamExhausted | 
| -1022 | NSURLErrorAppTransportSecurityRequiresSecureConnection | 
| -1100 | NSURLErrorFileDoesNotExist | 
| -1101 | NSURLErrorFileIsDirectory | 
| -1102 | NSURLErrorNoPermissionsToReadFile | 
| -1103 | NSURLErrorDataLengthExceedsMaximum | 
| -1104 | NSURLErrorFileOutsideSafeArea | 
| -1200 | NSURLErrorSecureConnectionFailed | 
| -1201 | NSURLErrorServerCertificateHasBadDate | 
| -1202 | NSURLErrorServerCertificateUntrusted | 
| -1203 | NSURLErrorServerCertificateHasUnknownRoot | 
| -1204 | NSURLErrorServerCertificateNotYetValid | 
| -1205 | NSURLErrorClientCertificateRejected | 
| -1206 | NSURLErrorClientCertificateRequired | 
| -2000 | NSURLErrorCannotLoadFromNetwork | 
| -3000 | NSURLErrorCannotCreateFile | 
| -3001 | NSURLErrorCannotOpenFile | 
| -3002 | NSURLErrorCannotCloseFile | 
| -3003 | NSURLErrorCannotWriteToFile | 
| -3004 | NSURLErrorCannotRemoveFile | 
| -3005 | NSURLErrorCannotMoveFile | 
| -3006 | NSURLErrorDownloadDecodingFailedMidStream | 
| -3007 | NSURLErrorDownloadDecodingFailedToComplete | 
| 1 | invalidAddress | 
| 2 | protectionFailure | 
| 3 | noSpace | 
| 4 | invalidArgument | 
| 5 | failure | 
| 6 | resourceShortage | 
| 7 | notReceiver | 
| 8 | noAccess | 
| 9 | memoryFailure | 
| 10 | memoryError | 
| 11 | alreadyInSet | 
| 12 | notInSet | 
| 13 | nameExists | 
| 14 | aborted | 
| 15 | invalidName | 
| 16 | invalidTask | 
| 17 | invalidRight | 
| 18 | invalidValue | 
| 19 | userReferencesOverflow | 
| 20 | invalidCapability | 
| 21 | rightExists | 
| 22 | invalidHost | 
| 23 | memoryPresent | 
| 24 | memoryDataMoved | 
| 25 | memoryRestartCopy | 
| 26 | invalidProcessorSet | 
| 27 | policyLimit | 
| 28 | invalidPolicy | 
| 29 | invalidObject | 
| 30 | alreadyWaiting | 
| 31 | defaultSet | 
| 32 | exceptionProtected | 
| 33 | invalidLedger | 
| 34 | invalidMemoryControl | 
| 35 | invalidSecurity | 
| 36 | notDepressed | 
| 37 | terminated | 
| 38 | lockSetDestroyed | 
| 39 | lockUnstable | 
| 40 | lockOwned | 
| 41 | lockOwnedSelf | 
| 42 | semaphoreDestroyed | 
| 43 | rpcServerTerminated | 
| 44 | rpcTerminateOrphan | 
| 45 | rpcContinueOrphan | 
| 46 | notSupported | 
| 47 | nodeDown | 
| 48 | notWaiting | 
| 49 | operationTimedOut | 
| 50 | codesignError | 
| 51 | policyStatic | 
| 255 | NSFileLockingError | 
| 256 | NSFileReadUnknownError | 
| 257 | NSFileReadNoPermissionError | 
| 258 | NSFileReadInvalidFileNameError | 
| 259 | NSFileReadCorruptFileError | 
| 260 | NSFileReadNoSuchFileError | 
| 261 | NSFileReadInapplicableStringEncodingError | 
| 262 | NSFileReadUnsupportedSchemeError | 
| 263 | NSFileReadTooLargeError | 
| 264 | NSFileReadUnknownStringEncodingError | 
| 512 | NSFileWriteUnknownError | 
| 513 | NSFileWriteNoPermissionError | 
| 514 | NSFileWriteInvalidFileNameError | 
| 516 | NSFileWriteFileExistsError | 
| 517 | NSFileWriteInapplicableStringEncodingError | 
| 518 | NSFileWriteUnsupportedSchemeError | 
| 640 | NSFileWriteOutOfSpaceError | 
| 642 | NSFileWriteVolumeReadOnlyError | 
| 768 | NSFileManagerUnmountUnknownError | 
| 769 | NSFileManagerUnmountBusyError | 
| 1024 | NSKeyValueValidationError | 
| 2048 | NSFormattingError | 
| 3072 | NSUserCancelledError | 
| 3328 | NSFeatureUnsupportedError | 
| 3584 | NSExecutableNotLoadableError | 
| 3585 | NSExecutableArchitectureMismatchError | 
| 3586 | NSExecutableRuntimeMismatchError | 
| 3587 | NSExecutableLoadError | 
| 3588 | NSExecutableLinkError | 
| 3840 | NSPropertyListReadCorruptError | 
| 3841 | NSPropertyListReadUnknownVersionError | 
| 3842 | NSPropertyListReadStreamError | 
| 3851 | NSPropertyListWriteStreamError | 
| 3852 | NSPropertyListWriteInvalidError | 
| 4353 | NSUbiquitousFileUnavailableError | 
| 4354 | NSUbiquitousFileNotUploadedDueToQuotaError | 
| 4355 | NSUbiquitousFileUbiquityServerNotAvailable | 
| 4864 | NSCoderReadCorruptError | 
| 4865 | NSCoderValueNotFoundError | 
| 4866 | NSCoderInvalidValueError | 
| 4992 | NSBundleOnDemandResourceOutOfSpaceError | 
| 4993 | NSBundleOnDemandResourceExceededMaximumSizeError | 
| 4994 | NSBundleOnDemandResourceInvalidTagError | 
| 5120 | NSCloudSharingNetworkFailureError | 
| 5121 | NSCloudSharingQuotaExceededError | 
| 5122 | NSCloudSharingTooManyParticipantsError | 
| 5123 | NSCloudSharingConflictError | 
| 5124 | NSCloudSharingNoPermissionError | 
| 5375 | NSCloudSharingOtherError |