---
title: "HTTP"
description: "The rules browsers, crawlers and apps use to ask a website for a page and get an answer: a status code, headers and usually the page itself."
url: https://ursy.com/wiki/http/
updated: 2026-11-26T15:39:45+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/http/
---

# HTTP

> The rules browsers, crawlers and apps use to ask a website for a page and get an answer: a status code, headers and usually the page itself.

**HTTP (Hypertext Transfer Protocol) is the set of rules browsers, crawlers and apps use to ask a website for a page or file, and that the website uses to answer.** Every visit to your site, from a person, [Googlebot](https://ursy.com/wiki/googlebot/) or an [AI crawler](https://ursy.com/wiki/ai-crawler/), is an HTTP request followed by an HTTP response. The response carries a status code, such as 200 or 404, plus headers and usually the page itself. [Search engines](https://ursy.com/wiki/search-engine/) and AI systems read those codes and headers before they read a word of your text.

## What is HTTP? {#what-is-http}

MDN calls HTTP “a protocol for fetching resources such as [HTML](https://ursy.com/wiki/html/) documents” and “the foundation of any data exchange on the Web” ([MDN: Overview of HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview)). It is a client-server protocol: the client, called the [user agent](https://ursy.com/wiki/user-agent/), always starts. The server only answers. The current core rules are in [RFC 9110, HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html), published in June 2022, which describes HTTP as a “stateless application-level protocol”.

## What does “stateless” mean? {#what-does-stateless-mean}

Each request stands alone. MDN says there is no link between two requests on the same connection. A server does not remember you between pages unless something carries that memory. Usually that is a [cookie](https://ursy.com/wiki/cookie/), which MDN says allows stateful sessions on top of HTTP. That is how a basket or a [session](https://ursy.com/wiki/session/) works. It is also why [cookies](https://ursy.com/wiki/first-party-cookies/) and the [cookie banner](https://ursy.com/wiki/cookie-banner/) matter for analytics.

## What does a request and a response look like? {#what-does-a-request-and-a-response-look-like}

A request names a method, a path, the HTTP version and some headers. This is MDN’s example:

```
GET / HTTP/1.1
Host: developer.mozilla.org
Accept-Language: fr
```

The response gives the version, a status code and message, headers and, usually, a body:

```
HTTP/1.1 200 OK
Date: Sat, 09 Oct 2010 14:28:02 GMT
Server: Apache
Content-Type: text/html
```

The path is part of the page’s [URL](https://ursy.com/wiki/url/). The [referrer](https://ursy.com/wiki/referrer/) and the user agent travel as request headers too.

## Which methods matter? {#which-methods-matter}

| Method | What MDN says it does | Safe? | Idempotent? |
| --- | --- | --- | --- |
| GET | Requests a representation of a resource; should only retrieve data | Yes | Yes |
| HEAD | The same as GET, but without the response body | Yes | Yes |
| POST | Submits data, often changing something on the server | No | No |

From [MDN: HTTP request methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods). Crawlers almost always use GET. Never let a GET link delete or change data: a [bot](https://ursy.com/wiki/bot-web-robot/) that follows it will trigger it.

## What do the status codes mean? {#what-do-the-status-codes-mean}

MDN lists five classes, all defined by RFC 9110 ([MDN: HTTP response status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status)):

- **1xx**  informational.
- **2xx**  success, such as 200 OK.
- **3xx**  [redirects](https://ursy.com/wiki/redirect/), such as 301, 302, 304, 307 and 308.
- **4xx**  client errors, such as [404 Not Found and 410 Gone](https://ursy.com/wiki/404-and-410/), and 429 Too Many Requests.
- **5xx**  server errors, such as 500 and [503 Service Unavailable](https://ursy.com/wiki/503-service-unavailable/).

## Why does it matter for search? {#why-does-it-matter-for-search}

[Google](https://ursy.com/wiki/google/) explains how each class affects its crawlers ([How HTTP status codes affect Google’s crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes)):

- A 2xx does not guarantee indexing. A 200 page that shows an error or nothing may be reported as a [soft 404](https://ursy.com/wiki/soft-404/).
- Googlebot follows up to 10 redirect hops. A 301 is a strong signal, a 302 a weak one; 308 counts as 301 and 307 as 302. See [301 vs 302](https://ursy.com/wiki/301-vs-302-redirect/).
- Google does not index URLs that return a 4xx, and removes indexed ones that start to.
- 5xx errors and 429 make Google’s crawlers slow down. URLs that keep returning server errors are removed from the index.

So a wrong code can waste [crawl budget](https://ursy.com/wiki/crawl-budget/) or drop pages from the [search engine index](https://ursy.com/wiki/search-engine-index/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

AI crawlers and [live fetchers](https://ursy.com/wiki/live-fetcher/) are HTTP clients too. They send a request, read the status and headers, and take whatever HTML comes back. If your server answers a bot with an error, a challenge page or an empty shell, that is all the AI system gets, and it has nothing to quote as a [citation](https://ursy.com/wiki/citation/). A bot that does not run JavaScript sees only the HTML in the response; see [JavaScript SEO](https://ursy.com/wiki/javascript-seo/). Even [robots.txt](https://ursy.com/wiki/robots-txt/) is fetched over HTTP: under [RFC 9309](https://www.rfc-editor.org/rfc/rfc9309.html), a 4xx answer lets a crawler access anything, a 5xx means it must assume everything is disallowed, and it should follow at least five redirects.

## Which headers matter most? {#which-headers-matter-most}

- **Content-Type** : what the body is, such as text/html.
- **Location** : where a redirect points.
- **ETag and Last-Modified** : let a crawler ask “has this changed?” and get a short 304 if not. Google says it supports both and recommends ETag for its crawlers ([Overview of Google crawlers](https://developers.google.com/crawling/docs/crawlers-fetchers/overview-google-crawlers)).
- **[X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/)** : Google says it can carry rules such as [noindex](https://ursy.com/wiki/noindex/) in the HTTP response, which is useful for PDFs and images ([Robots meta tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)).
- **Cache headers** : decide how long a [CDN](https://ursy.com/wiki/cdn/) keeps a copy in its [edge cache](https://ursy.com/wiki/edge-cache/).

## HTTP/1.1, HTTP/2 and HTTP/3 {#http-1-1-http-2-and-http-3}

The meaning of HTTP stays the same; the way it travels changes. [RFC 9113](https://www.rfc-editor.org/rfc/rfc9113.html) (HTTP/2) adds field compression and many exchanges on one connection. [RFC 9114](https://www.rfc-editor.org/rfc/rfc9114.html) (HTTP/3) maps HTTP over QUIC. All three were published in June 2022. Google says its crawlers support HTTP/1.1 and HTTP/2, use HTTP/1.1 by default, and stop using HTTP/2 on a site that answers with status 421. They accept gzip, deflate and Brotli compression, and by default read only the first 15MB of a file. HTTPS is HTTP sent over an encrypted TLS connection, which needs an [SSL certificate](https://ursy.com/wiki/ssl-certificate/).

## Common mistakes {#common-mistakes}

- **A 200 for a missing page.**  Return 404 or 410, not a friendly page with status 200.
- **A 302 for a permanent move.**  Use 301 or 308.
- **Long [redirect chains](https://ursy.com/wiki/redirect-chain/).**  Every hop costs time and some crawlers give up.
- **A 503 that never ends.**  Fine for short maintenance; persistent errors drop pages.
- **Blocking bots with a challenge.**  A [web application firewall](https://ursy.com/wiki/web-application-firewall/) or [rate limiting](https://ursy.com/wiki/rate-limiting/) can answer real crawlers with 403 or 429.
- **A slow first byte.**  A slow [origin server](https://ursy.com/wiki/origin-server/) shows up as poor [time to first byte](https://ursy.com/wiki/time-to-first-byte/).

## How to check it {#how-to-check-it}

1. Run the [HTTP Header Checker](https://ursy.com/http-header-checker/) on a page. It shows the status code, cache headers and any [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/).
2. Follow every hop of a moved page with the [Redirect Checker](https://ursy.com/redirect-checker/). Look for 302s that should be 301s, loops and chains. The [page with redirect](https://ursy.com/wiki/page-with-redirect/) report in Search Console lists the same problem from Google’s side.
3. Find links that end in 404 with the [Broken Link Checker](https://ursy.com/broken-link-checker/). Fix each [broken link](https://ursy.com/wiki/broken-link/).
4. Check that /robots.txt itself answers 200 with the [Robots.txt Checker](https://ursy.com/robots-txt-checker/), then see which AI crawlers it lets in with the [AI Bot Checker](https://ursy.com/ai-bot-checker/).
5. Test an address that claims to be a bot with [Verify an AI Bot](https://ursy.com/verify-ai-bot/), so you never block a real crawler or let a fake one through. See [verified bots](https://ursy.com/wiki/verified-bots/).
6. Run the [AI Readiness Checker](https://ursy.com/ai-readiness-checker/) for an overall view, and [Compare Two Websites](https://ursy.com/compare-websites/) to put your status codes and headers next to a rival’s.
7. Also try the [Edge Cache Checker](https://ursy.com/cache-checker/), [Security Headers Checker](https://ursy.com/security-headers-checker/), [SSL Certificate Checker](https://ursy.com/ssl-checker/) and [Can Google index this page?](https://ursy.com/indexability-checker/).
8. Read your [server logs](https://ursy.com/wiki/server-logs/) to see what codes bots really got. Our [AI Crawler Log Analyser](https://ursy.com/ai-crawler-log-analyzer/) reads a log in your browser; the [log file analyser](https://ursy.com/pro/log-file-analyser/), [redirect monitor](https://ursy.com/pro/redirect-monitor/), [404s with referrer](https://ursy.com/pro/404s-with-referrer/) and [edge cache report](https://ursy.com/pro/edge-cache-report/) are in URSY Pro, opening in stages.

## What URSY.com counts {#what-ursy-counts}

For us, a request is one answer the website gave: a page, file, image, feed or API reply. We read it from two places: the CDN’s edge log, which includes cache [hits](https://ursy.com/wiki/hit-analytics/), and the website itself. A request seen in both has the same request ID and is counted once. Status codes and cache hits are observed, so we rate them high confidence. We never store query strings, only the path. See our [methodology](https://ursy.com/methodology/).

## Questions {#questions}

### What is the difference between HTTP and HTTPS? {#what-is-the-difference-between-http-and-https}

HTTPS is HTTP over an encrypted TLS connection. The requests and codes are the same; the traffic cannot be read on the way.

### Does Googlebot use HTTP/2? {#does-googlebot-use-http-2}

It can. Google says its crawlers support HTTP/1.1 and HTTP/2, use HTTP/1.1 by default, and pick the version that performs better.

### Is a 404 bad for SEO? {#is-a-404-bad-for-seo}

Not in itself. A 404 for a page that is truly gone is correct. It is a problem when a page you want indexed returns one, or when your own links point to it.

### Why do bots get a different answer from people? {#why-do-bots-get-a-different-answer-from-people}

Often a firewall, rate limit or [CDN](https://ursy.com/wiki/cdn/) rule treats them differently. Serving bots different content on purpose can be [cloaking](https://ursy.com/wiki/cloaking/).

## Related words {#related-words}

- [URL](https://ursy.com/wiki/url/)
- [User agent](https://ursy.com/wiki/user-agent/)
- [Redirect](https://ursy.com/wiki/redirect/)
- [404 and 410](https://ursy.com/wiki/404-and-410/)
- [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/)
- [Edge cache](https://ursy.com/wiki/edge-cache/)
- [Server logs](https://ursy.com/wiki/server-logs/)
- [Technical SEO](https://ursy.com/wiki/technical-seo/)
- [DNS](https://ursy.com/wiki/dns/)

## Sources {#sources}

- [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html), checked 24 November 2026
- [RFC 9113: HTTP/2](https://www.rfc-editor.org/rfc/rfc9113.html), checked 24 November 2026
- [RFC 9114: HTTP/3](https://www.rfc-editor.org/rfc/rfc9114.html), checked 24 November 2026
- [RFC 9309: Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309.html), checked 24 November 2026
- [MDN: Overview of HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview), checked 24 November 2026
- [MDN: HTTP request methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods), checked 24 November 2026
- [MDN: HTTP response status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status), checked 24 November 2026
- [Google: How HTTP status codes affect Google’s crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes), checked 24 November 2026
- [Google: Overview of Google crawlers and fetchers](https://developers.google.com/crawling/docs/crawlers-fetchers/overview-google-crawlers), checked 24 November 2026
- [Google Search Central: Robots meta tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
