channels/server: provide error codes to distinguish between not-registered and not-ready state.