1 /* @(#)$Id: nntp.h,v 2.1 90/04/05 15:06:18 sources Exp $ */
3 * Response codes for NNTP server
5 * @(#)nntp.h 1.7 (Berkeley) 1/11/88
9 * 1xx Informative message
11 * 3xx Command ok so far, continue
12 * 4xx Command was correct, but couldn't be performed
13 * for some specified reason.
14 * 5xx Command unimplemented, incorrect, or a
15 * program error has occured.
19 * x0x Connection, setup, miscellaneous
20 * x1x Newsgroup selection
21 * x2x Article selection
30 #define CHAR_FATAL '5'
32 #define INF_HELP 100 /* Help text on way */
33 #define INF_DEBUG 199 /* Debug output */
35 #define OK_CANPOST 200 /* Hello; you can post */
36 #define OK_NOPOST 201 /* Hello; you can't post */
37 #define OK_SLAVE 202 /* Slave status noted */
38 #define OK_GOODBYE 205 /* Closing connection */
39 #define OK_GROUP 211 /* Group selected */
40 #define OK_GROUPS 215 /* Newsgroups follow */
41 #define OK_ARTICLE 220 /* Article (head & body) follows */
42 #define OK_HEAD 221 /* Head follows */
43 #define OK_BODY 222 /* Body follows */
44 #define OK_NOTEXT 223 /* No text sent -- stat, next, last */
45 #define OK_NEWNEWS 230 /* New articles by message-id follow */
46 #define OK_NEWGROUPS 231 /* New newsgroups follow */
47 #define OK_XFERED 235 /* Article transferred successfully */
48 #define OK_POSTED 240 /* Article posted successfully */
50 #define CONT_XFER 335 /* Continue to send article */
51 #define CONT_POST 340 /* Continue to post article */
53 #define ERR_GOODBYE 400 /* Have to hang up for some reason */
54 #define ERR_NOGROUP 411 /* No such newsgroup */
55 #define ERR_NCING 412 /* Not currently in newsgroup */
56 #define ERR_NOCRNT 420 /* No current article selected */
57 #define ERR_NONEXT 421 /* No next article in this group */
58 #define ERR_NOPREV 422 /* No previous article in this group */
59 #define ERR_NOARTIG 423 /* No such article in this group */
60 #define ERR_NOART 430 /* No such article at all */
61 #define ERR_GOTIT 435 /* Already got that article, don't send */
62 #define ERR_XFERFAIL 436 /* Transfer failed */
63 #define ERR_XFERRJCT 437 /* Article rejected, don't resend */
64 #define ERR_NOPOST 440 /* Posting not allowed */
65 #define ERR_POSTFAIL 441 /* Posting failed */
67 #define ERR_COMMAND 500 /* Command not recognized */
68 #define ERR_CMDSYN 501 /* Command syntax error */
69 #define ERR_ACCESS 502 /* Access to server denied */
70 #define ERR_FAULT 503 /* Program fault, command not performed */
72 /* RFC 977 defines this; don't change it. */
74 #define NNTP_STRLEN 512