Common Error Codes
SFTP Error Codes
Code | Name | Description |
| OK | Indicates successful completion of the operation. |
| EOF | 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. |
| Permission denied | The user does not have sufficient permissions to perform the operation. |
| Failure | 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. |
| Bad message | A badly formatted packet or other SFTP protocol incompatibility was detected. |
| No connection | There is no connection to the server. This error may be used locally, but must not be return by a server. |
| Connection lost | The connection to the server was lost. This error may be used locally, but must not be return by a server. |
| Operation unsupported | 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. |
FTP
421 FTP response code
Resolution:
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.
Example response:
421 Service not available, closing control connection.
Possible commands:
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.