コード例 #1
0
        private Task HandleExceptionAsync(HttpContext context, Exception exception)
        {
            ExceptionNotifier.NotifyException(exception, context.Request);

            context.Response.ContentType = "application/json";
            context.Response.StatusCode  = (int)HttpStatusCode.InternalServerError;

            return(context.Response.WriteAsync(""));
        }