What is http/ftp 220 status?

Asked

Viewed 795 times

6

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

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

While giving context to the question, a general answer is welcome

  • Searching high above, I found the following: 220 - Service ready for new user. In the hosting service in question there is nothing specific to this case?

  • 1

    https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

  • @Tuxpilgrim thanks, if you have not found

  • @Leocaracciolo on wikipedia has the 220? I did not find, nor in the unofficial

  • @Isac, if that’s what you want to know, the site is hosted on Ocaweb

  • What I said I found in wikipedia, but when it came to ftp errors, I was curious about your case :p

  • @Tuxpilgrim thanks for the link, if you know anything else you can try a more complete answer

  • Which FTP client you are using?

  • @sam use the filezila

  • 2

    A very important comment: FTP is different from HTTP. They are different protocols and have different return codes.

  • Do you want to know FTP or HTTP? In the title and tags speak HTTP and FTP text, which are different things

  • Dear William, regardless of which answer you agreed to make this type of issue after answered mischaracterizes answers already given, please avoid this kind of situation

Show 7 more comments

2 answers

7

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

There is no HTTP code 220, what exists in the range of 200 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.

Translation: Service ready for new user

This indicates that the server is ready for a user to connect and therefore receives such code, as the link http://www.serv-u.com/kb/1509/220-FTP-Reply-Code

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

REINITIALIZE (REIN)

This command Terminates a 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. A USER command may be expected to follow.

https://tools.ietf.org/html/rfc959

  • 1

    I didn’t know there was ftp status, I thought those values were universal, thanks

  • I edited the question, what do you think?

6


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

The 220 response means that the connection has been established (SYN) and the server is ready to receive credentials (if required). This status occurs after the 3 handshakes initials by port TCP 21 as shown below:

inserir a descrição da imagem aqui

That is, the client sends a request SYN (to synchronize) to the server (1st step), the client responds with SYN-ACK (synchronize-took note, 2nd step) and the client returns an ACK (took note, 3rd step).

After the 3rd step the server sends the status 220 informing that the connection has been established and again the client sends the ACK (became aware) along with the credentials (user and password or only user if the server allows anonymous connection).

Regarding being disconnecting alone after a few seconds "by time", it may be N factors, since downtime or due to some configuration in the client.

Here are some reference links about FTP connections:

  • As I commented in the other answer, I didn’t know there was ftp status, I thought these values were universal. I edited the question by running tags and title. Regarding the "by time", I believe it is some configuration in Ilezilla itself not to keep the connection open for a long time, thanks for the answer

  • 1

    Have option there that you arrow downtime before disconnecting.

  • I invite you to manifest here: https://pt.meta.stackoverflow.com/q/7203/132

Browser other questions tagged

You are not signed in. Login or sign up in order to post.