using System.Net;

namespace JSMR.UI.Blazor.Exceptions;

public sealed class ApiException(HttpStatusCode statusCode, string message, string? responseBody = null) : Exception(message)
{
    public HttpStatusCode StatusCode { get; } = statusCode;
    public string? ResponseBody { get; } = responseBody;
}