-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.go
66 lines (60 loc) · 2.16 KB
/
status.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright (C) 2015 Tim Retout <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package nntp
// NNTP status codes as defined by RFC 3977.
const (
StatusHelpText = 100
StatusCapabilityList = 101
StatusServerDate = 111
StatusPostingAllowed = 200
StatusPostingProhibited = 201
StatusConnectionClosing = 205
StatusGroupSelected = 211
StatusInformationFollows = 215
StatusArticleFollows = 220
StatusArticleHeadersFollow = 221
StatusArticleBodyFollows = 222
StatusArticleSelected = 223
StatusOverviewFollows = 224
StatusHeadersFollow = 225
StatusNewArticlesFollow = 230
StatusNewNewsgroupsFollow = 231
StatusArticleTransferredOK = 235
StatusArticleReceivedOK = 240
StatusTransferArticle = 335
StatusPostArticle = 340
StatusServiceNotAvailable = 400
StatusWrongServerMode = 401
StatusInternalFault = 403
StatusNoSuchGroup = 411
StatusNoGroupSelected = 412
StatusCurrentArticleInvalid = 420
StatusNoNextArticle = 421
StatusNoPreviousArticle = 422
StatusNoSuchArticleNumber = 423
StatusNoSuchMessageID = 430
StatusArticleNotWanted = 435
StatusTransferFailed = 436
StatusTransferRejected = 437
StatusPostingNotPermitted = 440
StatusPostingFailed = 441
StatusNotAuthenticated = 480
StatusNotPrivate = 483
StatusUnknownCommand = 500
StatusSyntaxError = 501
StatusNotPermitted = 502
StatusFeatureNotSupported = 503
StatusEncodingError = 504
)