toNetworkException

Translates this into a NetworkException, keeping it as the cause, or returns null when it is not a network failure.


Returns the NetworkException a response with this status stands for, or null for a success.

For a repository that reads the status itself instead of letting the client throw.