private static Task WriteDevelopmentResponse(HttpContext httpContext, Func <Task> next) => ExceptionResponseHelper.HandleException(httpContext, true);
private static Task WriteProductionResponse(HttpContext httpContext, Func <Task> next) => ExceptionResponseHelper.HandleException(httpContext, false);