chargeafter-rnd_chargeafter-plugin-for-nopcommerce/Nop.Plugin.Payments.ChargeAfter/Core/Http/HttpException.cs
using System.IO;
using System.Net;
using System.Net.Http.Headers;

namespace Nop.Plugin.Payments.ChargeAfter.Core.Http
{
    public class HttpException : IOException
    {
        public HttpStatusCode StatusCode { get; }
        public HttpHeaders Headers { get; }
        public HttpErrorResponse Body { get; }

        public HttpException(HttpStatusCode statusCode, HttpHeaders headers, string message, HttpErrorResponse body = null) : base(message)
        {
            StatusCode = statusCode;
            Headers = headers;
            Body = body;
        }
    }
}
