HTTP is a request and response protocol. The browser sends a request: a method such as GET, a path such as /logo.png, headers like Host: example.com, and sometimes a body (for a submitted form, say). The server answers with a response: a status code, headers such as Content-Type, and usually a body, which is the file itself.
| Code | Meaning |
|---|
| 200 | OK, the body follows |
| 301 | Moved permanently, see the Location header |
| 404 | Not found |
| 500 | The server failed |
A real page is rarely one request. The HTML names a stylesheet, scripts and images, and each is fetched with its own request. Say a page needs 12. How those requests are carried across the network is what changed between HTTP/1.1, HTTP/2 and HTTP/3.
💡Good to know
Every request is a question and every response an answer. The versions differ in how they ship them.