[Bug 1001] Define macros STATUS_ENDPOINT_CLOSED, STATUS_DISCONNECTED