Ejemplo n.º 1
0
        //-------------------------------------------------------------------------------------------------------------------------
        //
        //-------------------------------------------------------------------------------------------------------------------------
        private void ResponseStatusInit()
        {
            ResponseStatus.Add(200, "200 OK");
            ResponseStatus.Add(201, "201 Created");
            ResponseStatus.Add(202, "202 Accepted");
            ResponseStatus.Add(204, "204 No Content");

            ResponseStatus.Add(301, "301 Moved Permanently");
            ResponseStatus.Add(302, "302 Redirection");
            ResponseStatus.Add(304, "304 Not Modified");

            ResponseStatus.Add(400, "400 Bad Request");
            ResponseStatus.Add(401, "401 Unauthorized");
            ResponseStatus.Add(403, "403 Forbidden");
            ResponseStatus.Add(404, "404 Not Found");

            ResponseStatus.Add(500, "500 Internal Server Error");
            ResponseStatus.Add(501, "501 Not Implemented");
            ResponseStatus.Add(502, "502 Bad Gateway");
            ResponseStatus.Add(503, "503 Service Unavailable");
        }
        static GoogleResponses()
        {
            ResponseStatus.Add(good, true);
            ResponseStatus.Add(nochg, true);
            ResponseStatus.Add(nohost, false);
            ResponseStatus.Add(badauth, false);
            ResponseStatus.Add(notfqdn, false);
            ResponseStatus.Add(badagent, false);
            ResponseStatus.Add(abuse, false);
            ResponseStatus.Add(x911, false);
            ResponseStatus.Add(conflict, false);

            ResponseDescription.Add(good, "The update was successful. You should not attempt another update until your IP address changes.");
            ResponseDescription.Add(nochg, "The supplied IP address is already set for this host. You should not attempt another update until your IP address changes.");
            ResponseDescription.Add(nohost, "The hostname does not exist, or does not have Dynamic DNS enabled.");
            ResponseDescription.Add(badauth, "The username / password combination is not valid for the specified host.");
            ResponseDescription.Add(notfqdn, "The supplied hostname is not a valid fully-qualified domain name.");
            ResponseDescription.Add(badagent, "Your Dynamic DNS client is making bad requests. Ensure the user agent is set in the request.");
            ResponseDescription.Add(abuse, "Dynamic DNS access for the hostname has been blocked due to failure to interpret previous responses correctly.");
            ResponseDescription.Add(x911, "An error happened on our end. Wait 5 minutes and retry.");
            ResponseDescription.Add(conflict, "A custom A or AAAA resource record conflicts with the update. Delete the indicated resource record within DNS settings page and try the update again.");
        }