Improve networkuitl with server error detection.