updated error name to NetworkError
updated error name