Common Error Codes
SFTP Error Codes
Indicates successful completion of the operation.
An attempt to read past the end-of-file was made; or, there are no more directory entries to return.
No such file
A reference was made to a file which does not exist.
The user does not have sufficient permissions to perform the operation.
An error occurred, but no specific error code exists to describe the failure. This error message should always have meaningful text in the the error message field.
A badly formatted packet or other SFTP protocol incompatibility was detected.
There is no connection to the server. This error may be used locally, but must not be return by a server.
The connection to the server was lost. This error may be used locally, but must not be return by a server.
An attempted operation could not be completed by the server because the server does not support the operation. It may be returned by the server if the server does not implement an operation.
421 FTP response code
A 421 response code indicates that while the service is still running, the service is unavailable at the time of connection. It indicates that the server will be restarting as soon as it finishes processing pending operations (usually any file transfers currently in progress). It is considered a transient negative response, which means the client is encouraged to issue the same command again at a later time when it can be accepted.
421 Service not available, closing control connection.
A 421 FTP response code may be given in response to any FTP command or connection attempt if the FTP server knows it must shut down.