Argentini.Halide.H3Http.GetRedirectCodeText C# (CSharp) Method

GetRedirectCodeText() public static method

Contains the following Indexes: 301,302,303,304,305,307
public static GetRedirectCodeText ( Int32 redirectCode ) : String
redirectCode System.Int32 Redirect Code number (e.g. 301)
return String
        public static String GetRedirectCodeText(Int32 redirectCode)
        {
            switch (redirectCode)
            {
                case 301: return "Moved Permanently";
                case 302: return "Found"; //generally a bad idea to use.
                case 303: return "See Other";
                case 304: return "Not Modified"; //not really useful, but added for completeness
                case 305: return "Use Proxy"; //NOTE: "Redirect Location" is the PROXY to which the user is redirected for this single request (and should only be generated by origin servers).
                /*case 306: return "Unused"; */
                //unused, but reserved.  Added here for completeness
                case 307: return "Temporary Redirect";
                default: return "";
            }
        }