HTTP responses


Here's an example of a HTTP response:

HTTP/1.1 200 OK
Connection: close
Date: Tue, 18 Aug 2015 15: 44 : 04 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Tue, 18 Aug 2015 15:11:03 GMT
Content-Length: 6821
Content-Type: text/html

[The object that was requested]

There are 3 parts: the status line, header lines, and the object line

Status line

The HTTP response also has a HTTP version.

Status code

The status code is one of a bunch of different codes which tell the client the status of their request.

Header lines