🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44522

Re: [NNTP Draft] 4. Basic Operation

#44522
From: Andrew Gierth
Date: Sun, 27 Feb 2000 00:00
119 lines
6606 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:

 Curt> I'm thinking this table of xNx codes should just be dropped
 Curt> from the standard.  That would help solve the AUTHINFO problem.

 Curt> Does any client ever written analyze codes based on the second
 Curt> digit?

not that I know of - but that isn't saying much.

 Curt> Something that should have been done, but wasn't, would be to
 Curt> reserver a class of codes which means: "data follows".  For
 Curt> example, if all the 2xx codes were used for responses that
 Curt> preceeded data.  That way, low level routines could correctly
 Curt> parse the data stream even if they weren't expecting to see
 Curt> data from the command.

 Curt> Has 3xx been used only for those places where data needs to be
 Curt> sent by the client (i.e. multiline data).  That would help if
 Curt> it were the case.

Even that isn't the case in practice; AUTHINFO USER returns 381, but
doesn't expect a multiline response from the client. 

This situation is, IMO, too badly broken to fix. Looking through the
current responses (see below), there is even inconsistency on the
presence or absence of parameters on some common response codes.

 Curt> I'm thinking it might make sense to throw out these current Nxx
 Curt> and xNx meanings and see if we can create some new definitions
 Curt> that would be more useful.  This of course requires trying to
 Curt> track down almost every response code currently in use and
 Curt> track down how every newsreadser written checks codes.  I'm
 Curt> thinking this might not be as hard as it sounds.  But even if
 Curt> we do some serious research in this direction, we may find it's
 Curt> just to late to "fix" this...

 Curt> But some things, like dropping x8x and x9x may be doable.

This is a list of all the main error codes that I know of (taken from
some code of mine from a year or so back, and compiled from RFC 977
and various other sources):

RC( Rc_HELP_OK,         100, "help follows" )
RC( Rc_DATE_OK,         111, "%04d%02d%02d%02d%02d%02d" )
RC( Rc_READY_POSTOK,    200, "%s server ready - posting allowed" )
RC( Rc_READY_NOPOST,    201, "%s server ready - no posting allowed" )
RC( Rc_SLAVE_OK,        202, "slave status noted (deprec)" )
RC( Rc_STREAM_OK,       203, "StreamOK" )
RC( Rc_GOODBYE,         205, "closing connection - goodbye!" )
RC( Rc_GROUP_OK,        211, "%d %d %d %s group selected" )
RC( Rc_LIST_OK,         215, "list follows" )
RC( Rc_ARTICLE_OK,      220, "%d %s article retrieved - head and body follow" )
RC( Rc_HEAD_OK,         221, "%d %s article retrieved - head follows" )
RC( Rc_BODY_OK,         222, "%d %s article retrieved - body follows" )
RC( Rc_STAT_OK,         223, "%d %s article retrieved - request text separately" )
RC( Rc_XOVER_OK,        224, "overview follows" )
RC( Rc_NEWNEWS_OK,      230, "list of new articles by message-id follows" )
RC( Rc_NEWGROUPS_OK,    231, "list of new newsgroups follows" )
RC( Rc_IHAVE_OK,        235, "article transferred ok" )
RC( Rc_CHECK_OK,        238, "%s" )
RC( Rc_TAKETHIS_OK,     239, "%s" )
RC( Rc_POST_OK,         240, "article posted ok" )
RC( Rc_AUTH_OK,         281, "authentication succeeded" )
RC( Rc_IHAVE_PROCEED,   335, "send article to be transferred." )
RC( Rc_POST_PROCEED,    340, "send article to be posted." )
RC( Rc_AUTH_PROCEED,    381, "more authentication required" )
RC( Rc_SERVER_UNAVAIL,  400, "service discontinued" )
RC( Rc_NO_SUCH_GROUP,   411, "no such news group" )
RC( Rc_NOT_IN_GROUP,    412, "no newsgroup has been selected" )
RC( Rc_NO_CURRENT_ART,  420, "no current article has been selected" )
RC( Rc_NO_NEXT_ART,     421, "no next article in this group" )
RC( Rc_NO_PREV_ART,     422, "no previous article in this group" )
RC( Rc_NO_SUCH_ARTNUM,  423, "no such article number in this group" )
RC( Rc_NO_SUCH_ARTICLE, 430, "no such article found" )
RC( Rc_CHECK_DEFER,     431, "%s" )
RC( Rc_IHAVE_REFUSE,    435, "article not wanted - do not send it" )
RC( Rc_IHAVE_DEFER,     436, "transfer failed - try again later" )
RC( Rc_IHAVE_REJECT,    437, "article rejected - do not try again." )
RC( Rc_CHECK_REFUSE,    438, "%s" )
RC( Rc_TAKETHIS_REJECT, 439, "%s" )
RC( Rc_POST_DENIED,     440, "posting not allowed" )
RC( Rc_POST_FAILED,     441, "posting failed" )
RC( Rc_AUTH_NEEDED,     480, "authentication required" )
RC( Rc_AUTH_FAILED,     482, "authentication failed" )
RC( Rc_BAD_COMMAND,     500, "command not recognized" )
RC( Rc_SYNTAX_ERROR,    501, "command syntax error" )
RC( Rc_ACCESS_DENIED,   502, "you do not have permission to talk" )
RC( Rc_SERVER_FAULT,    503, "program fault - command not performed" )

In addition to the above:

  INN sends 481 not 482 in response to bad AUTHINFO from a feed peer
  (482 is used for bad auth from a reader)

  INN uses 504 for "server too busy" and 505 for "client making too
  many connects". I think the implication of the new draft is that
  400 should have been used instead.

  ANU News (and INN) use 282 and 481 for good and bad responses to
  the XGTITLE command. This command is deprecated (LIST NEWSGROUPS
  replaces it).

  INN uses 339 for "continue to send batch" for the XBATCH extension
  (and 239 on success, and 436 on failure)

  XHDR and XPAT return 221 on success without the parameters normally
  supplied on a 221 response.

  LISTGROUP returns 211 (same as GROUP) but without the parameter
  values normally returned by GROUP.

  INN uses 223 followed by a list of pathnames (without the normal
  parameters returned with 223) for the XPATH command.

-- 
Andrew.

Technical Details
Message-ID: <87ya879z1d.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <87u2ivd36l.fsf@erlenstar.demon.co.uk> <87putjbmbd.fsf@erlenstar.demon.co.uk> <20000226194417.410$7f@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <87ya879z1d.fsf@erlenstar.demon.co.uk>
Subject: Re: [NNTP Draft] 4. Basic Operation
Date: Sun, 27 Feb 2000 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <87u2ivd36l.fsf@erlenstar.demon.co.uk> <87putjbmbd.fsf@erlenstar.demon.co.uk> <20000226194417.410$7f@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 590461969
X-Mayan-Date: Long count = 12.19.6.17.17; tzolkin = 1 Caban; haab = 5 Kayab
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha