@Nullable
    public static String rfc3986URLEncode(final String text) {
        final String encoded = encode(text);
        return encoded != null ? StringUtils.replace(encoded.replace("+", "%20"), "%7E", "~") : null;
    }
Wait until a request has completed and check its response status. An exception will be thrown if the
request does not complete successfully.success status.

@param response the response to check
main/src/main/java/cgeo/geocaching/network/Network.java