string GetHTTP404 ()
{
string file = Path.Combine (".", "http_404.html");
if (!File.Exists (file))
return getDefaultHTTP404 ();
StreamReader sr = null;
string result;
try {
sr = File.OpenText (file);
result = sr.ReadToEnd ();
sr.Close ();
} catch {
if (sr != null)
sr.Close();
result = "";
}
return result;
}