namespace System
{
    internal static class SystemExtensions
    {
        internal static bool IsSuccessStatusCode(this int @this)
        {
            return @this >= 200 && @this <= 299;
        }
    }
}
Add extension method check for success HTTP Status code
Add extension method check for success HTTP Status code
