Handle code error from the hub.