Article View: news.software.nntp
Article #44558Re: [NNTP Draft] 4. Basic Operation
From: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
70 lines
3987 bytes
3987 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > > The first digit of the response broadly indicates the > > success, failure, or progress of the previous command. > > > 1xx - Informative message > > 2xx - Command ok > > 3xx - Command ok so far, send the rest of it. > > 4xx - Command was correct, but couldn't be performed for > > some > > reason. > > 5xx - Command unimplemented, or incorrect, or a serious > > program error occurred. Please add a blank line here :). > > The next digit in the code indicates the function response > > category. > > > x0x - Connection, setup, and miscellaneous messages > > x1x - Newsgroup selection > > x2x - Article selection > > x3x - Distribution functions > > x4x - Posting > > x8x - Nonstandard (private implementation) extensions > > x9x - Debugging output > > The x8x entry here is the sticking point for progressing the AUTHINFO > extensions. I'm thinking this table of xNx codes should just be dropped from the standard. That would help solve the AUTHINFO problem. Does any client ever written analyze codes based on the second digit? What's the advantage for trying to reserve them in this fashion now? When you talk about return codes from a specific command, it makes no difference whatsoever how the codes are selected, or if they duplicate codes returned from other commands. All commands could for example just use the values 001, 002, 003, and 004, and the protocol will work fine. What's important, is if there are codes, or classes of codes, which might be returned for all commands, or might have _useful_ meaning for all commands. For example, the AUTHINFO 480 authentication requried code. Or the fact that 4xx and 5xx are always error responses. Something that should have been done, but wasn't, would be to reserver a class of codes which means: "data follows". For example, if all the 2xx codes were used for responses that preceeded data. That way, low level routines could correctly parse the data stream even if they weren't expecting to see data from the command. Has 3xx been used only for those places where data needs to be sent by the client (i.e. multiline data). That would help if it were the case. I'm thinking it might make sense to throw out these current Nxx and xNx meanings and see if we can create some new definitions that would be more useful. This of course requires trying to track down almost every response code currently in use and track down how every newsreadser written checks codes. I'm thinking this might not be as hard as it sounds. But even if we do some serious research in this direction, we may find it's just to late to "fix" this... But some things, like dropping x8x and x9x may be doable. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<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-mailReferences:
<87u2ivd36l.fsf@erlenstar.demon.co.uk> <87putjbmbd.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <20000226194417.410$7f@newsreader.com>
Subject: Re: [NNTP Draft] 4. Basic Operation
Date: Sun, 27 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87u2ivd36l.fsf@erlenstar.demon.co.uk> <87putjbmbd.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
X-Deja-AN: 590440496
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp