Search⌘ K
AI Features

HTTP: Response Messages

Explore HTTP response messages to understand their structure, including status lines, headers, and the response body. Learn how status codes communicate request results and how headers like Cache-Control and ETag manage caching and security. This lesson equips you to recognize key HTTP response components essential for web development and debugging.

Introduction

Let’s start with a typical example of an HTTP response message:

Shell
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]

It has three parts: an initial ...

📝 HTTP response messages don’t have the URL or the ...