forked from fclairamb/ftpserverlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.go
56 lines (50 loc) · 2.57 KB
/
consts.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
package ftpserver
// from @stevenh's PR proposal
// https://github.com/fclairamb/ftpserverlib/blob/becc125a0770e3b670c4ced7e7bd12594fb024ff/server/consts.go
// Status codes as documented by:
// https://tools.ietf.org/html/rfc959
// https://tools.ietf.org/html/rfc2428
// https://tools.ietf.org/html/rfc2228
const (
// 100 Series - The requested action is being initiated, expect another reply before
// proceeding with a new command.
StatusFileStatusOK = 150 // RFC 959, 4.2.1
// 200 Series - The requested action has been successfully completed.
StatusOK = 200 // RFC 959, 4.2.1
StatusNotImplemented = 202 // RFC 959, 4.2.1
StatusSystemStatus = 211 // RFC 959, 4.2.1
StatusDirectoryStatus = 212 // RFC 959, 4.2.1
StatusFileStatus = 213 // RFC 959, 4.2.1
StatusHelpMessage = 214 // RFC 959, 4.2.1
StatusSystemType = 215 // RFC 959, 4.2.1
StatusServiceReady = 220 // RFC 959, 4.2.1
StatusClosingControlConn = 221 // RFC 959, 4.2.1
StatusClosingDataConn = 226 // RFC 959, 4.2.1
StatusEnteringPASV = 227 // RFC 959, 4.2.1
StatusEnteringEPSV = 229 // RFC 2428, 3
StatusUserLoggedIn = 230 // RFC 959, 4.2.1
StatusAuthAccepted = 234 // RFC 2228, 3
StatusFileOK = 250 // RFC 959, 4.2.1
StatusPathCreated = 257 // RFC 959, 4.2.1
// 300 Series - The command has been accepted, but the requested action is on hold,
// pending receipt of further information.
StatusUserOK = 331 // RFC 959, 4.2.1
StatusFileActionPending = 350 // RFC 959, 4.2.1
// 400 Series - The command was not accepted and the requested action did not take place,
// but the error condition is temporary and the action may be requested again.
StatusServiceNotAvailable = 421 // RFC 959, 4.2.1
StatusCannotOpenDataConnection = 425 // RFC 959, 4.2.1
StatusTransferAborted = 426 // RFC 959, 4.2.1
StatusFileActionNotTaken = 450 // RFC 959, 4.2.1
// 500 Series - Syntax error, command unrecognized and the requested action did not take
// place. This may include errors such as command line too long.
StatusSyntaxErrorNotRecognised = 500 // RFC 959, 4.2.1
StatusSyntaxErrorParameters = 501 // RFC 959, 4.2.1
StatusCommandNotImplemented = 502 // RFC 959, 4.2.1
StatusBadCommandSequence = 503 // RFC 959, 4.2.1
StatusNotImplementedParam = 504 // RFC 959, 4.2.1
StatusNotLoggedIn = 530 // RFC 959, 4.2.1
StatusActionNotTaken = 550 // RFC 959, 4.2.1
StatusActionAborted = 552 // RFC 959, 4.2.1
StatusActionNotTakenNoFile = 553 // RFC 959, 4.2.1
)