XMPP 状态码 (部分)

来源:互联网 发布:js中获取元素的属性值 编辑:程序博客网 时间:2024/05/15 23:48

100

告知用户任何人都可以看到用户的完整的JID

101

通知用户,他或她的关系改变而不是在房间里

103

通知住户房间现在显示未上线用户

104

通知住户房间现在只显示上线用户

110

通知用户presence包也给自己发

170

通知房间用户现在房间允许进入

171

通知房间用户现在房间不允许进入

172

通知房间用户房间非匿名

173

通知房间用户房间匿名

201

通知用户创建了一个新房间

210

通知用户房间分配或修改了某个人的昵称

301

通知用户他被这个房间拉入黑名单

303

通知所有用户房间被修改了新昵称

307

通知用户,他或她已被踢出了房间

321

通知用户,他或她是要离开房间,因为关系的改变

322

通知用户,他离开这这个房间 因为房间只允许会员进入 而他不是会员

332

通知用户他离开了这个房间 因为MUC服务被关闭

<statuscode>  <number>100</number>  <stanza>message or presence</stanza>  <context>Entering a room</context>  <purpose>    Inform user that any occupant is allowed to see the user's full JID  </purpose></statuscode><statuscode>  <number>101</number>  <stanza>message (out of band)</stanza>  <context>Affiliation change</context>  <purpose>    Inform user that his or her affiliation changed while not in the room  </purpose></statuscode><statuscode>  <number>102</number>  <stanza>message</stanza>  <context>Configuration change</context>  <purpose>    Inform occupants that room now shows unavailable members  </purpose></statuscode><statuscode>  <number>103</number>  <stanza>message</stanza>  <context>Configuration change</context>  <purpose>    Inform occupants that room now does not show unavailable members  </purpose></statuscode><statuscode>  <number>104</number>  <stanza>message</stanza>  <context>Configuration change</context>  <purpose>    Inform occupants that a non-privacy-related room configuration change has occurred  </purpose></statuscode><statuscode>  <number>110</number>  <stanza>presence</stanza>  <context>Any room presence</context>  <purpose>    Inform user that presence refers to itself  </purpose></statuscode><statuscode>  <number>170</number>  <stanza>message or initial presence</stanza>  <context>Configuration change</context>  <purpose>    Inform occupants that room logging is now enabled  </purpose></statuscode><statuscode>  <number>171</number>  <stanza>message</stanza>  <context>Configuration change</context>  <purpose>    Inform occupants that room logging is now disabled  </purpose></statuscode><statuscode>  <number>172</number>  <stanza>message</stanza>  <context>Configuration change</context>  <purpose>    Inform occupants that the room is now non-anonymous  </purpose></statuscode><statuscode>  <number>173</number>  <stanza>message</stanza>  <context>Configuration change</context>  <purpose>    Inform occupants that the room is now semi-anonymous  </purpose></statuscode><statuscode>  <number>201</number>  <stanza>presence</stanza>  <context>Entering a room</context>  <purpose>    Inform user that a new room has been created  </purpose></statuscode><statuscode>  <number>210</number>  <stanza>presence</stanza>  <context>Entering a room, changing nickname, etc.</context>  <purpose>    Inform user that service has assigned or modified occupant's roomnick  </purpose></statuscode><statuscode>  <number>301</number>  <stanza>presence</stanza>  <context>Removal from room</context>  <purpose>    Inform user that he or she has been banned from the room  </purpose></statuscode><statuscode>  <number>303</number>  <stanza>presence</stanza>  <context>Exiting a room</context>  <purpose>    Inform all occupants of new room nickname  </purpose></statuscode><statuscode>  <number>307</number>  <stanza>presence</stanza>  <context>Removal from room</context>  <purpose>    Inform user that he or she has been kicked from the room  </purpose></statuscode><statuscode>  <number>321</number>  <stanza>presence</stanza>  <context>Removal from room</context>  <purpose>    Inform user that he or she is being removed from the room     because of an affiliation change  </purpose></statuscode><statuscode>  <number>322</number>  <stanza>presence</stanza>  <context>Removal from room</context>  <purpose>    Inform user that he or she is being removed from the room     because the room has been changed to members-only and the    user is not a member  </purpose></statuscode><statuscode>  <number>332</number>  <stanza>presence</stanza>  <context>Removal from room</context>  <purpose>    Inform user that he or she is being removed from the room     because the MUC service is being shut down  </purpose></statuscode>



302 

重定向 
尽管HTTP规定中包含八种不同代码来表示重定向,Jabber只用了其中一个(用来代替所有的重定向错误)。不过Jabber代码302是为以后的功能预留的,目前还没有用到 
400 
坏请求 
Jabber代码400用来通知Jabber客户端,一个请求因为其糟糕的语法不能被识别。例如,当一个Jabber客户端发送一个的订阅请求给它自己活发送一条没有包含“to”属性的消息,Jabber代码400就会产生。 
401 
未授权的 
Jabber代码401用来通知Jabber客户端它们提供的是错误的认证信息,如,在登陆一个Jabber服务器时使用一个错误的密码,或未知的用户名。 
402 
所需的费用 
Jabber代码402为未来使用进行保留,目前还不用到。 
403 
禁止 
Jabber代码403被Jabber服务器用来通知Jabber客户端该客户端的请求可以识别,但服务器拒绝执行。目前只用在注册过程中的密码存储失败。 
404 
没有找到 
Jabber代码404用来表明Jabber服务器找不到任何与JabberID匹配的内容,该JabberID是一个Jabber客户端发送消息的目的地。如,一个用户打算向一个不存在的JabberID发送一条消息。如果接受者的Jabber服务器无法到达,将发送一个来自500级数的错误代码。 
405 
不允许的 
Jabber代码405用在不允许操作被’from’地址标识的JabberID。例如,它可能产生在,一个非管理员用户试图在服务器上发送一条管理员级别的消息,或者一个用户试图发送一台Jabber服务器的时间或版本,或者发送一个不同的JabberID的vCard。 
406 
不被接受的 
Jabber代码406用于服务器因为某些理由不接受一个包。例如,这个可能发生在,一个Jabber客户端试图使用jabber:iq:private在服务器上存储信息,但当前的用于存储的名字空间用”jabber:”开头(在Jabber里是一个被存的XML开头)。另一种可能产生406错误的情况是当一个Jabber客户端试图用一个空密码注册到一台Jabber服务器上。 
407 
必须注册 
Jabber代码407当前不被使用 
408 
注册超时 
当一个Jabber客户端不能在服务器准备好的时间内发起一个请求时,Jabber服务器生成Jabber代码 
408。这个代码当前只用于Jabber会话管理器使用的零度认证模式中。 
409 
冲突 
略 
500 
服务器内部错误 
当一台Jabber服务器遇到一种预期外的条件,该条件阻止服务器处理来自Jabber客户端的包,这是将用到Jabber代码500。现在,唯一会引发500错误代码的时间是当一个Jabber客户端试图通过服务器认证,而该认证因为某些原因没有被处理(如无法保存密码)。 
501 
不可执行 
当服务器不支持Jabber客户端请求的功能,使用Jabber代码501。例如,该代码只当Jabber客户端发送一个认证请求,而该认证请求不包含服务器配置中定义的任何一种认证方式时,服务器发送Jabber代码501。这个代码还被用于,当一个Jabber客户端试图注册一个不允许注册的服务器。 
502 
远程服务器错误 
当因为无法到达远程服务器导致转发一个包失败时,使用Jabber代码502。该代码发送的特殊例子包括一个远程服务器的连接的失败,无法获取远程服务器的主机名,以及远程服务器错误导致的外部时间过期。 
503 
服务无法 
当一个Jabber客户端请求一个服务,而Jabber服务器通常由于一些临时原因无法提供该服务时,使 
获得 
用Jabber代码503。例如,一个Jabber客户端试图发送一条消息给另一个用户,该用户不在线,但它的服务器不提供离线存储服务,服务器将返回一个503错误代码给发送消息的JabberID。当为vcard-temp和jabber:iq:private名字空间设置信息时,出现通过xdb进行数据存储的写入错误,也使用该代码。 
504 
远程服务器超时 
Jabber代码504用于下列情况:试图连接一台服务器发生超时,错误的服务器名。 
510 
连接失败 

Jabber代码510


XMPP官方连接地址:http://xmpp.org/extensions/

0 0
原创粉丝点击