Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!ucdavis!csus.edu!uop!nsayer From: nsayer@uop.edu (Nick Sayer) Newsgroups: news.software.nntp Subject: Change error code: "502 Can't give that to you" to 413? Message-ID: <278a949a.1452@uop.uop.edu> Date: 9 Jan 91 03:57:15 GMT Organization: University of the Pacific, Stockton, CA [138.9.200.1] Lines: 26 I believe that the current implementation of nntpd with respect to the error code mentioned is incorrect. 502 implies a far more dire situation than is the case when someone tries an ARTICLE and it turns out that the group where the article resides is in a group made unavailable in the nntp_access file. I believe that in common/nntp.h, this should be added: #define ERR_NGPERM 413 /* No permission for that group */ and in ahbs.c, the line that says "Can't give that to you." should have ERR_NGPERM rather than ERR_ACCESS. This would allow a differentiation between "Can't give that (single) article to you" and "you have no permission to do that sort of thing at all." Anyway, that's my two cents. I can generate context diffs if anyone wants them, but rather than do so, I'll wait for comments from the authors or people smarter about such things than I. -- Nick Sayer | Disclaimer: "Don't try this at home, | RIP: Mel Blanc mrapple@quack.sac.ca.us | kids. This should only be done by | 1908-1989 N6QQQ [44.2.1.17] | trained, professional idiots." | May he never 209-952-5347 (Telebit) | --Plucky Duck | be silenced.