function
function
redirecttohost {
redirecttohost{
var
var
host
host
=
=
\;
\;
=
=
"……"
""
+
+
host \;
host\;
}
}
var
var
errormsgdata
errormsgdata
=
=
{
{
" 400 " : " Request presents grammatical error " ,
"400":"请求出现语法错误",
" 401 " : " Does not have access authority " ,
"401":"没有访问权限",
" 403 " : " Server refuses to carry out to request " ,
"403":"服务器拒绝执行该请求",
" 404 " : " The The First Point page does not exist " ,
"404":"指定的页面不存在",
" 405 " : " The resources of request method to The First Point is not suitable " ,
"405":"请求方法对指定的资源不适用",
" 406 " : " Client side is unable to accept corresponding data " ,
"406":"客户端无法接受相应数据",
" 408 " : " When pending request server overtime " ,
"408":"等待请求时服务器超时",
" 409 " : " The state conflict of request with current resources, causing the request is unable to complete " ,
"409":"请求与当前资源的状态冲突,导致请求无法完成",
" 410 " : " Resources of request did not exist, and does not have transfer address " ,
"410":"请求的资源已不存在,并且没有转接地址",
" 500 " : " When server attempt executive request has encountered contingency " ,
"500":"服务器尝试执行请求时遇到了意外情况",
" 501 " : " Server does not have to carry out function that this request needs " ,
"501":"服务器不具备执行该请求所需的功能",
" 502 " : " Gateway or proxy server the response that receives from the upstream server are invalid " ,
"502":"网关或代理服务器从上游服务器收到的响应无效",
" 503 " : " Server is unable to process temporarily should request " ,
"503":"服务器暂时无法处理该请求",
" 504 " : " When the waiting upstream server responded, gateway or proxy server overtime " ,
"504":"在等待上游服务器响应时,网关或代理服务器超时",
" 505 " : " Server does not support in the request to use
"505":"服务器不支持请求中所用的
http
http
Edition " ,
版本",
" 1 " : " It is not able to analyze the server
"1":"无法解析服务器的
dns
dns
Address " ,
地址",
" 2 " : " Connection failure " ,
"2":"连接失败",
" -seven " : " Operation overtime " ,
"-7":"操作超时",
" -100 " : " Server accident has closed connection " ,
"-100":"服务器意外关闭了连接",
" -101 " : " Connection already reset " ,
"-101":"连接已重置",
" -102 " : " Server has rejected connection " ,
"-102":"服务器拒绝了连接",
" -104 " : " It is not able to connect server " ,
"-104":"无法连接到服务器",
" -105 " : " It is not able to analyze the server
"-105":"无法解析服务器的
dns
dns
Address " ,
地址",
" -109 " : " It is not able to visit this server " ,
"-109":"无法访问该服务器",
" -138 " : " It is not able access network " ,
"-138":"无法访问网络",
" -130 " : " Proxy server connection failure " ,
"-130":"代理服务器连接失败",
" -106 " : " The Internet access has interrupted " ,
"-106":"互联网连接已中断",
" -401 " : " Reads the data from the buffer presents mistake " ,
"-401":"从缓存中读取数据时出现错误",
" -400 " : " In buffer had not found clause of request " ,
"-400":"缓存中未找到请求的条目",
" -331 " : " Network suspended " ,
"-331":"网络已暂停",
" -six " : " It is not able to find this document or table of contents " ,
"-6":"无法找到该文件或目录",
" -310 " : " Redirection are too much " ,
"-310":"重定向过多",
" -324 " : " Server has separated the connection, and has not transmitted any data " ,
"-324":"服务器已断开连接,且未发送任何数据",
" -346 " : " Received redundant header from server " ,
"-346":"收到了来自服务器的重复标头",
" -349 " : " Received redundant header from server " ,
"-349":"收到了来自服务器的重复标头",
" -350 " : " Received redundant header from server " ,
"-350":"收到了来自服务器的重复标头",
" -118 " : " Connection overtime "
"-118":"连接超时"
} \;
}\;
var
var
ecode
ecode
=
=
( " Ecode " ) nerhtml \;
("ecode")nerhtml\;
var
var
emsg
emsg
=
=
errormsgdata [ ecode ] \;
errormsgdata[ecode]\;
=
=
emsg \;
emsg\;
( " Emsg " ) nerhtml
("emsg")nerhtml
=
=
emsg \;
emsg\;
( " Emsg_t " ) nerhtml
("emsg_t")nerhtml
=
=
ecode
ecode
+
+
" Mistake! " \;
"错误!"\;
To display comments and comment, click at the button