public static bool IsSuccess(this HttpStatusCode httpStatusCode) { return(httpStatusCode.GetValue() >= 200 && httpStatusCode.GetValue() <= 299); }