[Bug 1001] Define macros STATUS_ENDPOINT_CLOSED, STATUS_DISCONNECTED and STATUS_NONEXISTENT_NET_NAME