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("")); }