RFC2606 and RFC6761 define .invalid as a guaranteed-invalid TLD, so let's use it. Theoretically this should make the request fail much faster.
The condition here is flipped. From the spec: A network error is a response whose ... body is null ...