Show network error only if it is actually a network error

Throw a runtime exception otherwise

Change-Id: I9c0d34c2f3f2b26f38bdbf7c34705becf0376d0e