Most scraping dashboards report success as the share of requests that returned 200. That number is easy to compute and nearly useless. A 200 can carry an error page, an empty template or the wrong product, while a 304 or a 410 can be exactly the answer you needed. Status codes are evidence. Here is what the common ones mean and what to do with each.
Key takeaways
- A 200 means the server returned a response. Whether it is a valid product record is a separate check.
- A 403 means the server understood the request and refuses it. It does not tell you why, so don’t guess and don’t retry automatically.
- 404 and 410 are useful data: they are evidence that a product page was removed.
- A 304 saves bandwidth and parsing, but the request itself still reaches the server.
- Measure success as valid records per attempted product, not as the share of 200s.
Four checks, not one
It helps to separate four layers of validity. Transport: did bytes arrive at all? HTTP: does the status code say the request was fulfilled? Extraction: did the parser find the fields it expected? Business: is this the product you asked for, with a price you can use? Each layer catches failures the one above it lets through.
Four checks between a request and a usable record
Each layer catches failures that the layer above it lets through
A common pattern in broken datasets is a pipeline that stopped at layer two: every row has a 200 behind it, and some of the rows are not products.
What the common codes actually mean
HTTP semantics are defined in RFC 9110 (June 2022). The 429 code comes from RFC 6585. The table sticks to what the standards say and adds what a collector should record.
| Code | What the standard says | What it is often mistaken for | What to record and do |
|---|---|---|---|
| 200 OK | The request succeeded and the response carries a representation | A valid product | Run extraction and business checks before storing |
| 301, 308 | Moved permanently; 308 keeps the method | Noise | Store the final URL; a product URL redirecting to a category or home page often means delisting |
| 302, 307 | Temporary redirect | A permanent move | Follow, but keep the original URL as the key |
| 304 Not Modified | Conditional request; the stored copy is still current | An error | Reuse the cached record and update its last-checked time |
| 403 Forbidden | The server understood the request but refuses to fulfil it | Always bot protection; something to retry | Stop the domain queue and review |
| 404 Not Found | No current representation found for the URL | A crawler bug | Record a not-found event; confirm on a later run before marking delisted |
| 410 Gone | No longer available and likely permanent | Same as 404 | Record as removed |
| 429 Too Many Requests | The client sent too many requests in a given time | A server fault | Honor Retry-After and lower the domain’s rate |
| 500, 502, 504 | Server or gateway errors | Permanent failure | Retry a bounded number of times with backoff |
| 503 Service Unavailable | Temporarily unable to handle the request | Permanent failure | Wait, using Retry-After if present |
Standard meanings paraphrased from RFC 9110 and RFC 6585. The right-hand column is our operating policy.
200 is where validation starts
A 200 tells you the server sent something. It does not tell you what. Common 200 responses that are not product records:
- Soft 404s. The page says “product not available” or shows search results, but returns 200. Google’s documentation uses the term “soft 404” for exactly this pattern in its guide to HTTP and network errors.
- Interstitials and error templates. A consent page, a maintenance message or a generic error rendered with a 200.
- The wrong product. A variant you did not request, or a page where the first price in the source belongs to a recommendation widget. We walked through one such case in where e-commerce data actually lives.
- A different context. The right product, priced for a different store, ZIP code or currency than you configured. See zip-code pricing.
The minimum check after a 200 is cheap: the content type is what you expected, the product identifier on the page matches the one you requested, the required fields are present, and the price parses to a positive number in the expected currency.
Pythondef classify(requested_id, resp, record):
"""Return (outcome, reason). record is the parser's output or None."""
if resp is None:
return "transport_error", "no response"
code = resp.status_code
if code == 304:
return "unchanged", "conditional request"
if code in (404, 410):
return "removed" if code == 410 else "not_found", str(code)
if code in (401, 403):
return "refused", str(code) # stop and review, no retry
if code == 429 or code >= 500:
return "transient", str(code)
if code != 200:
return "unexpected", str(code)
if "html" not in resp.headers.get("Content-Type", "") and "json" not in resp.headers.get("Content-Type", ""):
return "invalid", "content type"
if not record:
return "invalid", "parser found nothing"
if str(record.get("sku")) != str(requested_id):
return "invalid", "different product"
if not record.get("price") or record["price"] <= 0:
return "invalid", "no usable price"
return "valid", "ok" 403 is a refusal, not a diagnosis
RFC 9110 says a 403 means the server understood the request but refuses to fulfil it, and that a server may explain why in the response. Often it doesn’t. The refusal might come from a geographic restriction, an account requirement, a rule in a security product, or a decision about your client. You usually cannot tell which from outside, and it is not your job to work it out by experiment.
Treat a 403 as a signal to stop sending requests to that domain and decide on purpose: is there an official API or feed, can you ask the site, or should the source be dropped? Retrying a 403 in a loop is how a collector turns a refusal into a complaint.
404 and 410 are data
For assortment tracking, a product page disappearing is the event you are trying to observe. Record it as such. Two practical rules help. First, confirm a 404 on a second run before marking a product delisted, because pages can fail transiently during deployments. Second, treat 410 as stronger evidence: RFC 9110 describes it as a condition that is likely permanent.
Some retailers never return 404 for removed products. They redirect to a category page or show a “no longer available” template with a 200. That is why the redirect target and the page template are worth recording too.
304 saves less than it seems
Conditional requests are the polite way to recheck a page. If the server sent an ETag or Last-Modified header, you can send If-None-Match or If-Modified-Since next time. If nothing changed, the server answers 304 with no body.
A conditional request saves the body, not the request
How ETag and If-None-Match turn a repeat fetch into a 304
The saving is real: no body to download, no parsing. But the request still reaches the server, so a 304 does not reduce request counts or rate-limit exposure. Many e-commerce pages also change on every load because of embedded timestamps or recommendations, so their ETags rarely match. Measure the 304 rate per domain before counting on it.
What to store for every response
| Field | Why |
|---|---|
| Requested URL and final URL | Redirects reveal delistings and canonical moves |
| Status code and outcome class | The code is evidence; the class drives the action |
Retry-After, ETag, Last-Modified | Needed for polite rechecks and waits |
| Response size and content type | Sudden size drops flag templates and error pages |
| Validation result and reason | Separates “fetched” from “usable” |
| Observed-at timestamp (UTC) | Ties the observation to a moment |
Measure the right success rate
Once outcomes are classified, the useful metric is simple: valid records divided by products you attempted, per domain and per run. Report the rest as a breakdown: refused, not found, transient, invalid. When the 200 rate stays flat and the valid rate drops, a layout changed. When the refused share rises, something about access changed and a person should look. Neither shows up if the only number on the dashboard is the share of 200s. It is one of the mistakes we list in our competitor price monitoring guide.
Quick answers
Does a 200 status code mean scraping succeeded?
No. It means the server returned a response. You still need to check that the content is a product page, that it is the product you requested, and that required fields such as price parse correctly.
What does a 403 mean when scraping?
The server understood the request and refuses to fulfil it. The reason is often not stated. Stop sending requests to that domain and review whether an API, a feed or permission is available, rather than retrying.
What is the difference between 404 and 410?
404 means no current representation was found for the URL. 410 means the resource is gone and the condition is likely permanent. Both are useful evidence that a product page was removed.
Does a 304 response reduce load on the server?
Partly. The server skips sending the body, which saves bandwidth and parsing. The request itself still arrives, so request counts and rate limits are unaffected.
What is a soft 404?
A page that tells the visitor the content does not exist but returns a 200 status. Collectors should detect it with content checks, because the status code alone looks like success.
Want records, not response codes?
We deliver validated product data with every row checked against the product you asked for. See custom datasets or get in touch.
