Article View: news.software.nntp
Article #79332Re: Questions about MODE
From: Julien ÉLIE
Date: Sun, 24 Aug 2008 07:20
Date: Sun, 24 Aug 2008 07:20
36 lines
2831 bytes
2831 bytes
Hi Russ,
>> But if the news reader tries to send MODE READER when the service is
>> temporarily unavailable, what should be done?
>> No response code is fine... Normally, it should be 400 but it is now
>> allowed only for initial connections!
>
> You're always allowed to send 403 [1], and I think that's the correct
> response in this case. 400 would be appropriate if we were immediately
> closing the connection, but I don't think that's the case, is it?
In fact, the connection is immediately closed after MODE READER if it
is not allowed. A 400 code is properly sent.
> So the return codes listed under each command supplement the ones
> listed in the generic section, and you can always use one of the
> generic codes if it's appropriate. Sometimes generic codes are listed
> explicitly if there's something that should be said about them, but
> the ones not listed are still available if appropriate.
Thanks.
The problem with 400 is that it is for an "initial connection", which
is not the case here. The meaning of 400 is not the same in RFC 977
("service discontinued").
And 502 ("reading service permanently unavailable") closes immediately
the connection.
So maybe the 403 is the best code for our case, as you said.
--
Julien ÉLIE
« Timeo Danaos et dona ferentes. » (Laocoon de Virgile)
Technical Details
Message-ID:
<g8r23g$tv9$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!nuzba.szn.dk!pnx.dk!news.ecp.fr!news.trigofacile.com!not-for-mailReferences:
<g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pt0s$hsb$1@news.trigofacile.com> <87ej4fv0f9.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <g8r23g$tv9$1@news.trigofacile.com> Subject: Re: Questions about MODE Date: Sun, 24 Aug 2008 09:20:13 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pt0s$hsb$1@news.trigofacile.com> <87ej4fv0f9.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!nuzba.szn.dk!pnx.dk!news.ecp.fr!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 36 NNTP-Posting-Host: aaubervilliers-151-1-21-55.w83-114.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1219562417 30697 83.114.140.55 (24 Aug 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 24 Aug 2008 07:20:17 +0000 (UTC) In-Reply-To: <87ej4fv0f9.fsf@windlord.stanford.edu> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049