Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / nntp / camel-nntp-resp-codes.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-nntp-resp-codes.h : #defines for all the response codes we care about */
3
4 /* 
5  *
6  * Copyright (C) 2000 Ximian, Inc. <toshok@ximian.com>
7  *
8  * This program is free software; you can redistribute it and/or 
9  * modify it under the terms of version 2 of the GNU Lesser General Public 
10  * License as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20  * USA
21  */
22
23 #ifndef CAMEL_NNTP_RESP_CODES_H
24 #define CAMEL_NNTP_RESP_CODES_H 1
25
26 #define CAMEL_NNTP_OK(x) ((x) < 400)
27 #define CAMEL_NNTP_ERR(x) (!CAMEL_NNTP_OK(x) && (x) < 500)
28 #define CAMEL_NNTP_FAIL(x) (!CAMEL_NNTP_OK(x) && !CAMEL_NNTP_ERR(x))
29
30 #define NNTP_GREETING_POSTING_OK    200
31 #define NNTP_GREETING_NO_POSTING    201
32
33 #define NNTP_EXTENSIONS_SUPPORTED     202
34 #define NNTP_GROUP_SELECTED           211
35 #define NNTP_LIST_FOLLOWS             215
36 #define NNTP_ARTICLE_FOLLOWS          220
37 #define NNTP_HEAD_FOLLOWS             221
38 #define NNTP_DATA_FOLLOWS             224
39 #define NNTP_NEW_ARTICLE_LIST_FOLLOWS 230
40 #define NNTP_NEW_GROUP_LIST_FOLLOWS   231
41
42 #define NNTP_NO_SUCH_GROUP          411
43 #define NNTP_NO_SUCH_ARTICLE        430
44
45 #define NNTP_NO_PERMISSION          502
46
47 /* authentication */
48 #define NNTP_AUTH_ACCEPTED          281
49 #define NNTP_AUTH_CONTINUE          381
50 #define NNTP_AUTH_REQUIRED          480
51 #define NNTP_AUTH_REJECTED          482
52
53 #define NNTP_PROTOCOL_ERROR         666
54
55 #endif /* CAMEL_NNTP_RESP_CODES_H */