add enum for network error