using System.Net;

namespace Leanetec.EConnect.Domain.Entities;

public record Response<TError>() where TError : class
{
    public bool Ok { get; init; }

    public HttpStatusCode? StatusCode { get; init; }
    
    public TError? Error { get; init; }
}

public record Response<TData, TError> : Response<TError> where TData : class where TError : class
{
    public TData? Data { get; init; }
}