Enum irc::proto::response::Response[][src]

#[repr(u16)]
pub enum Response { RPL_WELCOME, RPL_YOURHOST, RPL_CREATED, RPL_MYINFO, RPL_ISUPPORT, RPL_BOUNCE, RPL_NONE, RPL_USERHOST, RPL_ISON, RPL_AWAY, RPL_UNAWAY, RPL_NOWAWAY, RPL_WHOISUSER, RPL_WHOISSERVER, RPL_WHOISOPERATOR, RPL_WHOISIDLE, RPL_ENDOFWHOIS, RPL_WHOISCHANNELS, RPL_WHOWASUSER, RPL_ENDOFWHOWAS, RPL_LISTSTART, RPL_LIST, RPL_LISTEND, RPL_UNIQOPIS, RPL_CHANNELMODEIS, RPL_NOTOPIC, RPL_TOPIC, RPL_TOPICWHOTIME, RPL_INVITING, RPL_SUMMONING, RPL_INVITELIST, RPL_ENDOFINVITELIST, RPL_EXCEPTLIST, RPL_ENDOFEXCEPTLIST, RPL_VERSION, RPL_WHOREPLY, RPL_ENDOFWHO, RPL_NAMREPLY, RPL_ENDOFNAMES, RPL_LINKS, RPL_ENDOFLINKS, RPL_BANLIST, RPL_ENDOFBANLIST, RPL_INFO, RPL_ENDOFINFO, RPL_MOTDSTART, RPL_MOTD, RPL_ENDOFMOTD, RPL_YOUREOPER, RPL_REHASHING, RPL_YOURESERVICE, RPL_TIME, RPL_USERSSTART, RPL_USERS, RPL_ENDOFUSERS, RPL_NOUSERS, RPL_HOSTHIDDEN, RPL_TRACELINK, RPL_TRACECONNECTING, RPL_TRACEHANDSHAKE, RPL_TRACEUKNOWN, RPL_TRACEOPERATOR, RPL_TRACEUSER, RPL_TRACESERVER, RPL_TRACESERVICE, RPL_TRACENEWTYPE, RPL_TRACECLASS, RPL_TRACERECONNECT, RPL_TRACELOG, RPL_TRACEEND, RPL_STATSLINKINFO, RPL_STATSCOMMANDS, RPL_ENDOFSTATS, RPL_STATSUPTIME, RPL_STATSOLINE, RPL_UMODEIS, RPL_SERVLIST, RPL_SERVLISTEND, RPL_LUSERCLIENT, RPL_LUSEROP, RPL_LUSERUNKNOWN, RPL_LUSERCHANNELS, RPL_LUSERME, RPL_ADMINME, RPL_ADMINLOC1, RPL_ADMINLOC2, RPL_ADMINEMAIL, RPL_TRYAGAIN, RPL_LOCALUSERS, RPL_GLOBALUSERS, RPL_WHOISCERTFP, RPL_MONONLINE, RPL_MONOFFLINE, RPL_MONLIST, RPL_ENDOFMONLIST, RPL_WHOISKEYVALUE, RPL_KEYVALUE, RPL_METADATAEND, RPL_LOGGEDIN, RPL_LOGGEDOUT, RPL_SASLSUCCESS, RPL_SASLMECHS, ERR_UNKNOWNERROR, ERR_NOSUCHNICK, ERR_NOSUCHSERVER, ERR_NOSUCHCHANNEL, ERR_CANNOTSENDTOCHAN, ERR_TOOMANYCHANNELS, ERR_WASNOSUCHNICK, ERR_TOOMANYTARGETS, ERR_NOSUCHSERVICE, ERR_NOORIGIN, ERR_NORECIPIENT, ERR_NOTEXTTOSEND, ERR_NOTOPLEVEL, ERR_WILDTOPLEVEL, ERR_BADMASK, ERR_UNKNOWNCOMMAND, ERR_NOMOTD, ERR_NOADMININFO, ERR_FILEERROR, ERR_NONICKNAMEGIVEN, ERR_ERRONEOUSNICKNAME, ERR_NICKNAMEINUSE, ERR_NICKCOLLISION, ERR_UNAVAILRESOURCE, ERR_USERNOTINCHANNEL, ERR_NOTONCHANNEL, ERR_USERONCHANNEL, ERR_NOLOGIN, ERR_SUMMONDISABLED, ERR_USERSDISABLED, ERR_NOTREGISTERED, ERR_NEEDMOREPARAMS, ERR_ALREADYREGISTRED, ERR_NOPERMFORHOST, ERR_PASSWDMISMATCH, ERR_YOUREBANNEDCREEP, ERR_YOUWILLBEBANNED, ERR_KEYSET, ERR_CHANNELISFULL, ERR_UNKNOWNMODE, ERR_INVITEONLYCHAN, ERR_BANNEDFROMCHAN, ERR_BADCHANNELKEY, ERR_BADCHANMASK, ERR_NOCHANMODES, ERR_BANLISTFULL, ERR_NOPRIVILEGES, ERR_CHANOPRIVSNEEDED, ERR_CANTKILLSERVER, ERR_RESTRICTED, ERR_UNIQOPPRIVSNEEDED, ERR_NOOPERHOST, ERR_UMODEUNKNOWNFLAG, ERR_USERSDONTMATCH, ERR_NOPRIVS, ERR_MONLISTFULL, ERR_METADATALIMIT, ERR_TARGETINVALID, ERR_NOMATCHINGKEY, ERR_KEYINVALID, ERR_KEYNOTSET, ERR_KEYNOPERMISSION, ERR_NICKLOCKED, ERR_SASLFAIL, ERR_SASLTOOLONG, ERR_SASLABORT, ERR_SASLALREADY, }

List of all server responses as defined in RFC 2812 and Modern docs (henceforth referred to as Modern). All commands are documented with their expected form from the RFC, and any useful, additional information about the response code.

Variants

001 Welcome to the Internet Relay Network <nick>!<user>@<host> (Source: RFC2812)

002 Your host is <servername>, running version <ver> (Source: RFC2812)

003 This server was created <date> (Source: RFC2812)

004 <servername> <version> <available user modes> <available channel modes> (Source: RFC2812)

Various IRCds may choose to include additional arguments to RPL_MYINFO, and it's best to check for certain what the servers you're targeting do. Typically, there are additional parameters at the end for modes that have parameters, and server modes.

005 <servername> *(<feature>(=<value>)) :are supported by this server (Source: Modern)

RPL_ISUPPORT replaces RPL_BOUNCE from RFC2812, but does so consistently in modern IRCd implementations. RPL_BOUNCE has been moved to 010.

010 Try server <server name>, port <port number> (Source: Modern)

Undefined format. (Source: Modern)

RPL_NONE is a dummy numeric. It does not have a defined use nor format.

302 :*1<reply> *( " " <reply> ) (Source: RFC2812)

303 :*1<nick> *( " " <nick> ) (Source: RFC2812)

301 <nick> :<away message> (Source: RFC2812)

305 :You are no longer marked as being away (Source: RFC2812)

306 :You have been marked as being away (Source: RFC2812)

311 <nick> <user> <host> * :<real name> (Source: RFC2812)

312 <nick> <server> :<server info> (Source: RFC2812)

313 <nick> :is an IRC operator (Source: RFC2812)

317 <nick> <integer> :seconds idle (Source: RFC2812)

318 <nick> :End of WHOIS list (Source: RFC2812)

319 <nick> :*( ( "@" / "+" ) <channel> " " ) (Source: RFC2812)

314 <nick> <user> <host> * :<real name> (Source: RFC2812)

369 <nick> :End of WHOWAS (Source: RFC2812)

Obsolete. Not used. (Source: RFC2812)

322 <channel> <# visible> :<topic> (Source: RFC2812)

`323 :End of LIST (Source: RFC2812)

325 <channel> <nickname> (Source: RFC2812)

324 <channel> <mode> <mode params> (Source: RFC2812)

331 <channel> :No topic is set (Source: RFC2812)

332 <channel> :<topic> (Source: RFC2812)

333 <channel> <nick>!<user>@<host> <unix timestamp> (Source: RFC2812)

341 <channel> <nick> (Source: RFC2812)

342 <user> :Summoning user to IRC (Source: RFC2812)

According to Modern, this response is rarely implemented. In practice, people simply message one another in a channel with their specified username in the message, rather than use the SUMMON command.

346 <channel> <invitemask> (Source: RFC2812)

347 <channel> :End of channel invite list (Source: RFC2812)

According to Modern, RPL_ENDOFEXCEPTLIST (349) is frequently deployed for this same purpose and the difference will be noted in channel mode and the statement in the suffix.

348 <channel> <exceptionmask> (Source: RFC2812)

349 <channel> :End of channel exception list (Source: RFC2812)

351 <version> <server> :<comments> (Source: RFC2812/Modern)

352 <channel> <user> <host> <server> <nick> ( "H" / "G" > ["*"] [ ( "@" / "+" ) ] :<hopcount> <real name> (Source: RFC2812)

315 <name> :End of WHO list (Source: RFC2812)

353 ( "=" / "*" / "@" ) <channel> :[ "@" / "+" ] <nick> *( " " [ "@" / "+" ] <nick> ) (Source: RFC2812)

366 <channel> :End of NAMES list (Source: RFC2812)

364 <mask> <server> :<hopcount> <server info> (Source: RFC2812)

365 <mask> :End of LINKS list (Source: RFC2812)

367 <channel> <banmask> (Source: RFC2812)

368 <channel> :End of channel ban list (Source: RFC2812)

371 :<string> (Source: RFC2812)

374 :End of INFO list (Source: RFC2812)

375 :- <server> Message of the day - (Source: RFC2812)

372 :- <text> (Source: RFC2812)

376 :End of MOTD command (Source: RFC2812)

381 :You are now an IRC operator (Source: RFC2812)

382 <config file> :Rehashing (Source: RFC2812)

383 You are service <servicename> (Source: RFC2812)

391 <server> :<string showing server's local time> (Source: RFC2812)

392 :UserID Terminal Host (Source: RFC2812)

393 :<username> <ttyline> <hostname> (Source: RFC2812)

394 :End of users (Source: RFC2812)

395 :Nobody logged in (Source: RFC2812)

396 <nickname> <host> :is now your displayed host (Source: InspIRCd)

This response code is sent after a user enables the user mode +x (host masking), and it is successfully enabled. The particular format described above is from InspIRCd, but the response code should be common amongst servers that support host masks.

200 Link <version & debug level> <destination> <next server> V<protocol version> <link uptime in seconds> <backstream sendq> <upstream sendq> (Source: RFC2812)

201 Try. <class> <server> (Source: RFC2812)

202 H.S. <class> <server> (Source: RFC2812)

203 ???? <class> [<client IP address in dot form>] (Source: RFC2812)

204 Oper <class> <nick> (Source: RFC2812)

205 User <class> <nick> (Source: RFC2812)

206 Serv <class> <int>S <int>C <server> <nick!user|*!*>@<host|server> V<protocol version> (Source: RFC2812)

207 Service <class> <name> <type> <active type> (Source: RFC2812)

208 <newtype> 0 <client name> (Source: RFC2812)

209 Class <class> <count> (Source: RFC2812)

Unused. (Source: RFC2812)

261 File <logfile> <debug level> (Source: RFC2812)

262 <server name> <version & debug level> :End of TRACE (Source: RFC2812)

211 <linkname> <sendq> <sent messages> <sent Kbytes> <received messages> <received Kbytes> <time open> (Source: RFC2812)

212 <command> <count> <byte count> <remote count> (Source: RFC2812)

219 <stats letter> :End of STATS report (Source: RFC2812)

242 :Server Up %d days %d:%02d:%02d (Source: RFC2812)

243 O <hostmask> * <name> (Source: RFC2812)

221 <user mode string> (Source: RFC2812)

234 <name> <server> <mask> <type> <hopcount> <info> (Source: RFC2812)

235 <mask> <type> :End of service listing (Source: RFC2812)

251 :There are <int> users and <int> services on <int> servers (Source: RFC2812)

252 <integer> :operator(s) online (Source: RFC2812)

253 <integer> :unknown connection(s) (Source: RFC2812)

254 <integer> :channels formed (Source: RFC2812)

255 :I have <integer> clients and <integer> servers (Source: RFC2812)

256 <server> :Administrative info (Source: RFC2812)

257 :<admin info> (Source: RFC2812)

258 :<admin info> (Source: RFC2812)

259 :<admin info> (Source: RFC2812)

263 <command> :Please wait a while and try again. (Source: RFC2812)

265 <client> [<u> <m>] :Current local users <u>, max <m> (Source: Modern)

266 <client> [<u> <m>] :Current local users <u>, max <m> (Source: Modern)

276 <client> <nick> :has client certificate fingerprint <fingerprint> (Source: Modern)

730 <nick> :target[,target2]* (Source: RFC2812)

731 <nick> :target[,target2]* (Source: RFC2812)

732 <nick> :target[,target2]* (Source: RFC2812)

733 <nick> :End of MONITOR list (Source: RFC2812)

760 <target> <key> <visibility> :<value> (Source: RFC2812)

761 <target> <key> <visibility> :[<value>] (Source: RFC2812)

762 :end of metadata (Source: RFC2812)

900 <nick> <nick>!<ident>@<host> <account> :You are now logged in as <user> (Source: IRCv3)

901 <nick> <nick>!<ident>@<host> :You are now logged out (Source: IRCv3)

903 <nick> :SASL authentication successful (Source: IRCv3)

908 <nick> <mechanisms> :are available SASL mechanisms (Source: IRCv3)

400 <client> <command>{ <subcommand>} :<info> (Source: Modern)

According to Modern, this error will be returned when the given command/subcommand could not be processed. It's a very general error, and should only be used when more specific numerics do not suffice.

401 <nickname> :No such nick/channel (Source: RFC2812)

402 <server name> :No such server (Source: RFC2812)

403 <channel name> :No such channel (Source: RFC2812)

404 <channel name> :Cannot send to channel (Source: RFC2812)

405 <channel name> :You have joined too many channels (Source: RFC2812)

406 <nickname> :There was no such nickname (Source: RFC2812)

407 <target> :<error code> recipients. <abort message> (Source: RFC2812)

408 <service name> :No such service (Source: RFC2812)

409 :No origin specified (Source: RFC2812)

411 :No recipient given (<command>) (Source: RFC2812)

412 :No text to send (Source: RFC2812)

413 <mask> :No toplevel domain specified (Source: RFC2812)

414 <mask> :Wildcard in toplevel domain (Source: RFC2812)

415 <mask> :Bad Server/host mask (Source: RFC2812)

421 <command> :Unknown command (Source: RFC2812)

422 :MOTD File is missing (Source: RFC2812)

423 <server> :No administrative info available (Source: RFC2812)

424 :File error doing <file op> on <file> (Source: RFC2812)

431 :No nickname given (Source: RFC2812)

432 <nick> :Erroneous nickname" (Source: RFC2812)

433 <nick> :Nickname is already in use (Source: RFC2812)

436 <nick> :Nickname collision KILL from <user>@<host> (Source: RFC2812)

437 <nick/channel> :Nick/channel is temporarily unavailable (Source: RFC2812)

441 <nick> <channel> :They aren't on that channel (Source: RFC2812)

442 <channel> :You're not on that channel (Source: RFC2812)

443 <user> <channel> :is already on channel (Source: RFC2812)

444 <user> :User not logged in (Source: RFC2812)

445 :SUMMON has been disabled (Source: RFC2812)

446 :USERS has been disabled (Source: RFC2812)

451 :You have not registered (Source: RFC2812)

461 <command> :Not enough parameters (Source: RFC2812)

462 :Unauthorized command (already registered) (Source: RFC2812)

463 :Your host isn't among the privileged (Source: RFC2812)

464 :Password incorrect (Source: RFC2812)

465 :You are banned from this server (Source: RFC2812)

466 (Source: RFC2812)

467 <channel> :Channel key already set (Source: RFC2812)

471 <channel> :Cannot join channel (+l) (Source: RFC2812)

472 <char> :is unknown mode char to me for <channel> (Source: RFC2812)

473 <channel> :Cannot join channel (+i) (Source: RFC2812)

474 <channel> :Cannot join channel (+b) (Source: RFC2812)

475 <channel> :Cannot join channel (+k) (Source: RFC2812)

476 <channel> :Bad Channel Mask (Source: RFC2812)

477 <channel> :Channel doesn't support modes (Source: RFC2812)

478 <channel> <char> :Channel list is full (Source: RFC2812)

481 :Permission Denied- You're not an IRC operator (Source: RFC2812)

482 <channel> :You're not channel operator (Source: RFC2812)

483 :You can't kill a server! (Source: RFC2812)

484 :Your connection is restricted! (Source: RFC2812)

485 :You're not the original channel operator (Source: RFC2812)

491 :No O-lines for your host (Source: RFC2812)

501 :Unknown MODE flag (Source: RFC2812)

502 :Cannot change mode for other users (Source: RFC2812)

723 <client> <priv> :Insufficient oper privileges. (Source: Modern)

Sent to an operator to indicate that they don't have the specific privileges to perform the desired action. The format and meaning of the privilege string is server-defined.

734 <nick> <limit> <targets> :Monitor list is full. (Source: RFC2812)

764 <target> :metadata limit reached (Source: RFC2812)

765 <target> :invalid metadata target (Source: RFC2812)

766 <key> :no matching key (Source: RFC2812)

767 <key> :invalid metadata key (Source: RFC2812)

768 <target> <key> :key not set (Source: RFC2812)

769 <target> <key> :permission denied (Source: RFC2812)

902 <nick> :You must use a nick assigned to you. (Source: IRCv3)

904 <nick> :SASL authentication failed (Source: IRCv3)

905 <nick> :SASL message too long (Source: IRCv3)

906 <nick> :SASL authentication aborted (Source: IRCv3)

907 <nick> :You have already authenticated using SASL (Source: IRCv3)

Methods

impl Response
[src]

Determines whether or not this response is an error response.

This error consideration is according to RFC2812, but is rather simplistic. It considers all response codes above 400 to be errors, which misclassifies some extensions (e.g. from IRCv3) that add responses and errors both in the same range (typically 700s or 900s).

Trait Implementations

impl Clone for Response
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Response
[src]

impl Debug for Response
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Response
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromStr for Response
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Response

impl Sync for Response