private static void HandleIndexDisabledException(IHttpContext ctx, IndexDisabledException e) { ctx.Response.StatusCode = 503; ctx.Response.StatusDescription = "Service Unavailable"; SerializeError(ctx, new { Url = ctx.Request.RawUrl, Error = e.Information.GetErrorMessage(), Index = e.Information.Name, }); }