private static void OutputException(ErrorDescriptor errorModel, IHttpContext context)
		{
			var filtersHandler = ServiceLocator.Locator.Resolve<IFilterHandler>();
			var es = ErrorPageString;
			es = es.Replace("{SERVER_TYPE}", errorModel.ServerType);
			es = es.Replace("{HTTP_CODE}", errorModel.HttpCode.ToString());
			es = es.Replace("{SHORT_DESCRIPTION}", errorModel.ShortDescription);
			es = es.Replace("{LONG_DESCRIPTION}", errorModel.LongDescription);
			es = es.Replace("{STACK_TRACE}", errorModel.HttpCode == 500 ? BuildStackTrace(errorModel.Exception) : string.Empty);

			byte[] buffer = System.Text.Encoding.UTF8.GetBytes(es);
			context.Response.BinaryWrite(buffer);
		}
		public static void WriteException(IHttpContext context, int httpCode, Exception exception)
		{
			var sd = "Unknown error";
			if (_respStatus.Contains(httpCode))
			{
				sd = (string)_respStatus[httpCode];
			}
			var errorModel = new ErrorDescriptor()
			{
				Exception = exception,
				HttpCode = httpCode,
				ShortDescription = sd,
				LongDescription = exception.Message,
				ServerType = "Node.Cs http module V." + Assembly.GetExecutingAssembly().GetName().Version
			};
			OutputException(errorModel, context);
		}