Winsock Error Codes

Error Code Name Description
10004 WSAEINTR Interrupted function call (blocking operation interrupted by signal).
10013 WSAEACCES Permission denied.
10014 WSAEFAULT Bad address.
10022 WSAEINVAL Invalid argument.
10035 WSAEWOULDBLOCK Resource temporarily unavailable (non‑blocking socket).
10036 WSAEINPROGRESS Operation now in progress.
10037 WSAEALREADY Operation already in progress.
10038 WSAENOTSOCK Socket operation on non‑socket.
10039 WSAEDESTADDRREQ Destination address required.
10040 WSAEMSGSIZE Message too long.
10041 WSAEPROTONOSUPPORT Protocol not available.
10042 WSAEPROTONOTSUPP Protocol not supported.
10043 WSAESOCKTNOSUPPORT Socket type not supported.
10044 WSAEOPNOTSUPP Operation not supported.
10045 WSAEPFNOSUPPORT Protocol family not supported.
10046 WSAEAFNOSUPPORT Address family not supported by protocol family.
10047 WSAEADDRINUSE Address already in use.
10048 WSAEADDRNOTAVAIL Cannot assign requested address.
10049 WSAENETDOWN Network is down.
10050 WSAENETUNREACH Network is unreachable.
10051 WSAENETRESET Network dropped connection on reset.
10052 WSAECONNABORTED Software caused connection abort.
10053 WSAECONNRESET Connection reset by peer.
10054 WSAECONNREFUSED Connection refused.
10055 WSAEADDRINUSE Socket type not supported.
10056 WSAEISCONN Socket is already connected.
10057 WSAENOTCONN Socket is not connected.
10058 WSAESHUTDOWN Cannot send after socket shutdown.
10059 WSAETOOMANYREFS Too many references: cannot splice.
10060 WSAETIMEDOUT Connection timed out.
10061 WSAECONNREFUSED Connection refused.
10062 WSAEHOSTDOWN Host is down.
10063 WSAEHOSTUNREACH No route to host.
10064 WSAENOTEMPTY Directory not empty.
10065 WSAEPROCLIM Too many processes.
10066 WSAEUSERS User quota exceeded.
10067 WSAEDQUOT Disk quota exceeded.
10068 WSAESTALE Stale file handle reference.
10069 WSAEREMOTE Item is remote.
10070 WSASYSNOTREADY Network subsystem is unavailable.
10071 WSAVERNOTSUPPORTED WSA version not supported.
10091 WSANOTINITIALISED Successful WSAStartup not yet performed.
10092 WSAEDISCON Graceful shutdown in progress.
10093 WSASYSNOTREADY Network subsystem is unavailable.
10101 WSAEDISCON Graceful shutdown in progress.
10109 WSAHOST_NOT_FOUND Host not found.
10110 WSATRY_AGAIN Non‑recoverable name lookup failure.
10111 WSANO_RECOVERY This is a non‑recoverable error.
10112 WSANO_DATA Valid name, no data record of requested type.
10113 WSA_QOS_RECEIVERS QoS receivers.
10114 WSA_QOS_SENDERS QoS senders.
10115 WSA_QOS_NO_SENDERS No QoS senders.
10116 WSA_QOS_NO_RECEIVERS No QoS receivers.
10117 WSA_QOS_REQUEST_CONFIRMED QoS request confirmed.
10118 WSA_QOS_ADMISSION_FAILURE QoS admission error.
10119 WSA_QOS_POLICY_FAILURE QoS policy failure.
10120 WSA_QOS_BAD_STYLE Bad QoS style.
10121 WSA_QOS_BAD_OBJECT Bad QoS object.
10122 WSA_QOS_TRAFFIC_CTRL_ERROR Traffic control error.
10123 WSA_QOS_GENERIC_ERROR General QoS error.
10124 WSA_QOS_ESERVICETYPE Invalid service type in QoS.
10125 WSA_QOS_EFLOWSPEC Invalid flow specification in QoS.
10126 WSA_QOS_EPROVSPECBUF Invalid provider-specific buffer.
10127 WSA_QOS_EFILTERSTYLE Invalid filter style.
10128 WSA_QOS_EFILTERTYPE Invalid filter type.
10129 WSA_QOS_EFILTERCOUNT Incorrect filter count.
10130 WSA_QOS_EOBJLENGTH Object length error.
10131 WSA_QOS_EFLOWCOUNT Incorrect flow count.
10132 WSA_QOS_EUNKOWNPSOBJ Unknown provider-specific object.
10133 WSA_QOS_EPOLICYOBJ Policy object error.
10134 WSA_QOS_EFLOWDESC Invalid flow descriptor.
10135 WSA_QOS_EPSFLOWSPEC Invalid provider-specific flow spec.
10136 WSA_QOS_EPSFILTERSPEC Invalid provider-specific filter spec.
10137 WSA_QOS_ESDMODEOBJ Invalid service domain mode object.
10138 WSA_QOS_EUNKNOWNPSOBJ Unknown provider-specific object.
10139 WSA_QOS_ECONDITION Invalid QoS condition.
10140 WSA_QOS_EUNKNOWNPCODE Unknown policy code.
10141 WSA_QOS_EFILTERCOUNT Invalid filter count.
10142 WSA_QOS_EOBJMISMATCH Object type mismatch.
10143 WSA_QOS_EINVALID Invalid QoS structure.