//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. //------------------------------------------------------------------------------ namespace Microsoft.Singularity.WebServer { using System; using System.Collections; using System.Globalization; using System.Text; using System.Web; internal sealed class Messages { private const String httpErrorFormat1 = @" {0} "; public static String VersionString = "1.0"; //typeof(Server).Assembly.GetName().Version.ToString(); private const String httpStyle = @" "; private static String httpErrorFormat2 = @"

Server Error in Application.

HTTP Error {0} - {1}.


Version Information: Visual Web Developer Web Server " + VersionString + @" "; public static String FormatErrorMessageBody(int statusCode) { string desc = HttpWorkerRequest.GetStatusDescription(statusCode); return String.Format(httpErrorFormat1, new object[] {desc}) + httpStyle + String.Format(httpErrorFormat2, new object[] {statusCode, desc}); } } }