private bool IsRedirectStatusCode(int stCode) { if (stCode == 301 || stCode == 302) return true; return false; }