using System.Collections.Generic; using Ocelot.Library.Infrastructure.Errors; namespace Ocelot.Library.Infrastructure.Responses { public abstract class Response { protected Response() { Errors = new List(); } protected Response(List errors) { Errors = errors ?? new List(); } public List Errors { get; private set; } public bool IsError { get { return Errors.Count > 0; } } } }