make the interface to handle the network error