What is http / ftp status 220?

6

Contextualizing ... when trying to connect to the hosting server, by FTP, always returns status 220 and, after a few seconds, disconnects by time

Because it is a status of type 2xx it is not an error neither my (4xx) nor the server (5xx), but some problem has (since it does not connect), so what does this status mean?

Despite giving context to the question, a general response is welcome

    
asked by anonymous 23.07.2018 / 00:45

2 answers

6
  

The question was edited correctly in the revision number 3 and then   reverted to the original for no apparent reason. I will rely on   FTP protocol, since as has been said, status 220 does not exist in HTTP.

Response 220 means that the connection has been established (SYN) and the server is ready to receive the credentials (if needed). This status is given after the initial 3 handshakes by TCP port 21 as shown below:

Thatis,theclientsendsaSYN(synchronize)requesttotheserver(1ststep),itrespondswithSYN-ACK(synchronize-becameaware,step2)andtheclientreturnsanACKstep).

Afterstep3,theserversendsthe220statusstatingthattheconnectionhasbeenestablishedandagaintheclientsendstheACKtogetherwiththecredentials(userandpasswordoruseronlyiftheserverallowsanonymousconnection)/p>

Regardingbeingdisconnectedaloneafterafewseconds"by time", it may be N factors, since downtime or due to some configuration on the client.

Here are some reference links about FTP connections:

23.07.2018 / 15:51
7

FTP is not HTTP, are different protocols, work with different tools, have different purposes.

Does not exist HTTP 220 code, what exists in the 200 range are:

  • 200 OK
  • 201 Created
  • 202 Accepted
  • 203 Non-Authoritative Information (since HTTP / 1.1)
  • 204 No Content
  • 205 Reset Content
  • 206 Partial Content (RFC 7233)
  • 207 Multi-Status (WebDAV; RFC 4918)
  • 208 Already Reported (WebDAV; RFC 5842)
  • 226 IM Used (RFC 3229)

The code specifically 220 is FTP, follows the description:

  

Service ready for new user.

     

Translating: Ready for new user service

This indicates that the server is ready for a user to connect and therefore receives such a code, according to the link link

When using the command REIN (command that restarts) that terminates the current user, the protocol can send code 220, this command

  

REINITIALIZE (REIN)

     

This command terminates to USER, flushing all I / O and account   information, except to allow any transfer in progress to be completed.   All parameters are reset to the default settings and the control   connection is left open. This is identical to the state in which a   user finds himself immediately after the control connection is opened.   The USER command may be expected to follow.

     

link

    
23.07.2018 / 15:08