public static void AddApplicationError(this HttpResponse response, IExceptionHandlerFeature error) { response.AddApplicationError(error.Error.Message); }