private Exception NotFound (string scheme, WebResponse wres) { if (scheme == "https") return new SecurityException (); return new WebException ("NotFound", null, wres == null ? WebExceptionStatus.UnknownError : WebExceptionStatus.Success, wres); }