anchor.diff:          buffer.write(bytes, 0, bytesRead);
         }
         buffer.flush();
  +
  +	  //Check if the content of the HttpURLConnection contains error message
  +      String strResponse = buffer.toString();
  +      if (!ignoreAuthenticationErrors && strResponse.indexOf("{\"error\":{") > -1 && (strResponse.indexOf("\"code\":498") > -1 || strResponse.indexOf("\"code\":499") > -1)) {
  +        return true;
  +      }
   
         byte[] byteResponse = buffer.toByteArray();
         OutputStream ostream = clientResponse.getOutputStream();
  
positive.code:         //if the request has less parts than the config, don't allow
          if (configUriParts.length > uriParts.length) continue;
  
              int i;
              //try to match configUrl to the requested url, including protocol
              for (i = 0; i < configUriParts.length; i++)
              {
                  if (!configUriParts[i].toLowerCase().equals(uriParts[i].toLowerCase()) ) break;
              }
              if (i == configUriParts.length)
              {
                  //if the urls don't match exactly, and the individual matchAll tag is 'false', don't allow
                  if (configUriParts.length == uriParts.length || su.getMatchAll())
                      return su;
              }
          }
  
        if (this.mustMatch)
          return null;//if nothing match and mustMatch is true, return null
  
negative.code: java.text.SimpleDateFormat" %>
  
  <!-- ----------------------------------------------------------
  *
  * JSP proxy client
  *
  * Version 1.1 beta
  * See https://github.com/Esri/resource-proxy for more information.
  *
  ----------------------------------------------------------- -->
  
  <%! final String version = "1.1 Beta";   %>
  