forked from dutchcoders/goftp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ftp_code.go
58 lines (52 loc) · 2.25 KB
/
ftp_code.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
package goftp
// FTP status codes https://en.wikipedia.org/wiki/List_of_FTP_server_return_codes
const (
CodeRestartMarker = 110
CodeServiceReadyNNNminutes = 120
CodeDataConnectionAlreadyOpen = 125
CodeFileStatusOk = 150
CodeCommandOk = 200
CodeCommandNotImplementedInfo = 202
CodeSystemStatus = 211
CodeDirectoryStatus = 212
CodeFileStatus = 213
CodeHelpMessage = 214
CodeSystemType = 215
CodeServiceReadyForNewUser = 220
CodeServiceClosingControlConnection = 221
CodeDataConnectionOpenNoTransferInProgress = 225
CodeClosingDataConnection = 226
CodeEnteringPassiveMode = 227
CodeEnteringLongPassiveMode = 228
CodeEnteringExtendedPassiveMode = 229
CodeUserLoggedIn = 230
CodeUserLoggedOut = 231
CodeLogoutNoted = 232
CodeAuthMechanismAccepted = 234
CodeRequestedFileActionOk = 250
CodePathnameCreated = 257
CodeUserNameOkNeedPassword = 331
CodeNeedAccountForLogin = 332
CodeRequestedFileActionPending = 350
CodeServiceNotAvaliable = 421
CodeCantOpenDataConnection = 425
CodeConnectionClosed = 426
CodeInvalidUsernameOrPassword = 430
CodeRequstedHostUnavaliable = 434
CodeRequestedFileActionNotTaken = 450
CodeRequestedActionAborted = 451
CodeRequestedActionNotTaken = 452
CodeSyntaxError = 501
CodeCommandNotImplementedError = 502
CodeBadSequenceOfCommandsError = 503
CodeCommandNotImplementedForParamError = 504
CodeNotLoggedInError = 530
CodeNeedAccountForStoringError = 532
CodeFileUnavailableError = 550
CodePageTypeunknownError = 551
CodeExceededStorageAllocationError = 552
CodeFileNameNotAllowedError = 553
CodeIntegrityProtectedReply = 631
CodeConfidentialityAndIntegrityProtectedReply = 632
CodeConfidentialityProtectedReply = 633
)