ftp/status.go
2011-05-07 00:29:10 +01:00

101 lines
2.8 KiB
Go

package ftp
const (
StatusInitiating = 100
StatusRestartMarker = 110
StatusReadyMinute = 120
StatusAboutToSend = 150
StatusCommandOK = 200
StatusCommandNotImplemented = 202
StatusSystem = 211
StatusDirectory = 212
StatusFile = 213
StatusHelp = 214
StatusName = 215
StatusReady = 220
StatusClosing = 221
StatusDataConnectionOpen = 225
StatusClosingDataConnection = 226
StatusPassiveMode = 227
StatusLongPassiveMode = 228
StatusExtendedPassiveMode = 229
StatusLoggedIn = 230
StatusLoggedOut = 231
StatusLogoutAck = 232
StatusRequestedFileActionOK = 250
StatusPathCreated = 257
StatusUserOK = 331
StatusLoginNeedAccount = 332
Status350 = 350
StatusNotAvailable = 421
StatusCanNotOpenDataConnection = 425
StatusTransfertAborted = 426
StatusInvalidCredentials = 430
StatusHostUnavailable = 434
StatusFileActionIgnored = 450
StatusActionAborted = 451
Status452 = 452
StatusBadCommand = 500
StatusBadArguments = 501
StatusNotImplemented = 502
StatusBadSequence = 503
StatusNotImplementedParameter = 504
StatusNotLoggedIn = 530
StatusStorNeedAccount = 532
StatusFileUnavailable = 550
StatusPageTypeUnknown = 551
StatusExceededStorage = 552
StatusBadFileName = 553
)
var statusText = map[int]string{
StatusCommandOK: "Command okay",
StatusCommandNotImplemented: "Command not implemented, superfluous at this site",
StatusSystem: "System status, or system help reply",
StatusDirectory: "Directory status",
StatusFile: "File status",
StatusHelp: "Help message",
StatusName: "",
StatusReady: "Service ready for new user",
StatusClosing: "Service closing control connection",
StatusDataConnectionOpen: "Data connection open; no transfer in progress",
StatusClosingDataConnection: "Closing data connection. Requested file action successful",
StatusPassiveMode: "Entering Passive Mode",
StatusLongPassiveMode: "Entering Long Passive Mode",
StatusExtendedPassiveMode: "Entering Extended Passive Mode",
StatusLoggedIn: "User logged in, proceed",
StatusLoggedOut: "User logged out; service terminated",
StatusLogoutAck: "Logout command noted, will complete when transfer done",
StatusRequestedFileActionOK: "Requested file action okay, completed",
StatusPathCreated: "Path created",
StatusUserOK: "",
StatusLoginNeedAccount: "",
Status350: "",
StatusNotAvailable: "",
StatusCanNotOpenDataConnection: "",
StatusTransfertAborted: "",
StatusInvalidCredentials: "",
StatusHostUnavailable: "",
StatusFileActionIgnored: "",
StatusActionAborted: "",
Status452: "",
StatusBadCommand: "",
StatusBadArguments: "",
StatusNotImplemented: "",
StatusBadSequence: "",
StatusNotImplementedParameter: "",
StatusNotLoggedIn: "",
StatusStorNeedAccount: "",
StatusFileUnavailable: "",
StatusPageTypeUnknown: "",
StatusExceededStorage: "",
StatusBadFileName: "",
}