Common Error Codes

Updated 2 weeks ago by John Hurley

SFTP Error Codes

Code

Name

Description

0

OK

Indicates successful completion of the operation.

1

EOF

An attempt to read past the end-of-file was made; or, there are no more directory entries to return.

2

No such file

A reference was made to a file which does not exist.

3

Permission denied

The user does not have sufficient permissions to perform the operation.

4

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.

5

Bad message

A badly formatted packet or other SFTP protocol incompatibility was detected.

6

No connection

There is no connection to the server. This error may be used locally, but must not be return by a server.

7

Connection lost

The connection to the server was lost. This error may be used locally, but must not be return by a server.

8

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.


How Did We Do?