using HtmlAgilityPack;
using System.Net;

namespace JSMR.Infrastructure.Http;

public sealed class HtmlLoadResult
{
    public required HttpStatusCode StatusCode { get; init; }
    public HtmlDocument? Document { get; init; }

    public bool IsSuccessStatusCode => (int)StatusCode is >= 200 and <= 299;
}