if (response.isError()) { int code = response.getCode(); if (code == 404 || code == 410) throw new FileNotFoundException(url.toString());  throw new IOException("Server returned HTTP response code " + code + " for URL " + url.toString()); }
  public InputStream getInputStream()    throws IOException  {    if (!connected)      {        connect();      }    if (!doInput)      {        throw new ProtocolException("doInput is false");      }    return responseSink;  }