It's time to open a new book!

Previous Chapter

function redirecttohost{

var host = ;

= "" + host;

}

var errormsgdata = {

"400": "Request has a syntax error",

"401": "No access",

"403": "The request was rejected by the server",

"404": "The specified page does not exist",

"405": "The request method is not applicable to the specified resource",

"406": "The client cannot accept the corresponding data",

"408": "Server timed out while waiting for request",

"409": "The request conflicts with the status of the current resource, causing the request to fail to complete",

"410": "The requested resource no longer exists and there is no transfer address",

"500": "The server encountered an unexpected condition while trying to execute the request",

"501": "The server does not have the capabilities required to execute the request",

"502": "The response received by the gateway or proxy server from the upstream server is invalid",

"503": "The server is temporarily unable to process the request",

"504": "Gateway or proxy server timed out while waiting for an upstream server response",

"505": "The server does not support the HTTP version used in the request",

"1": "Failed to resolve the server's DNS address",

"2": "Failed",

"-7": Operation timed out,

"-100": "The server unexpectedly closed the connection",

"-101": "Connection reset",

"-102": "Server rejected connection",

"-104": "Unable to connect to server",

"-105": "Failed to resolve server's DNS address",

"-109": "Unable to reach this server",

"-138": "Unable to access network",

"-130": "Proxy server connection failed",

"-106": "Internet connection interrupted",

"-401": "Error reading data from cache",

"-400": "Requested entry not found in cache",

"-331": "Network suspended",

"-6": "The file or directory could not be found",

"-310": "Too many redirects",

"-324": "The server is disconnected and no data is being sent",

"-346": "Received duplicate header from server",

"-349": "Received duplicate header from server",

"-350": "Received duplicate header from server",

"-118": "Connection timed out"

};

var ecode = ("ecode")nerhtml;

var emsg = errormsgdata[ecode];

= emsg;

("emsg")nerhtml = emsg;

("emsg_t")nerhtml = ecode + "error!";