Article View: news.software.nntp
Article #79328Re: Questions about MODE
From: Russ Allbery
Date: Sat, 23 Aug 2008 22:20
Date: Sat, 23 Aug 2008 22:20
43 lines
2762 bytes
2762 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> OK for these commands.
>
> But if the news reader tries to send MODE READER when the service is
> temporarily unavailable, what should be done?
>
> Syntax
> MODE READER
>
> Responses
> 200 Posting allowed
> 201 Posting prohibited
> 502 Reading service permanently unavailable [1]
>
> [1] Following a 502 response the server MUST immediately close the
> connection.
>
> 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?
[1] Section 3.2:
The server MUST respond to any command with the appropriate generic
response (given in Section 3.2.1) if it represents the situation.
Otherwise, each recognized command MUST return one of the response
codes specifically listed in its description or in an extension.
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.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<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!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pt0s$hsb$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87ej4fv0f9.fsf@windlord.stanford.edu> Subject: Re: Questions about MODE Date: Sat, 23 Aug 2008 15:20:10 -0700 From: Russ Allbery <rra@stanford.edu> References: <g8ovaf$155$1@news.trigofacile.com> <87tzdby6d6.fsf@windlord.stanford.edu> <g8pt0s$hsb$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!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 43 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.stanford.edu 1219530010 19953 171.64.19.147 (23 Aug 2008 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:zRN9yOXc8inebwaxvs4r4mKWfZU=