You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fc642b8
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
feat(billing): charge for 404s and skip fraud accounting (#1152)
Copy file name to clipboardExpand all lines: src/context/dev/resources/web.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2519,7 +2519,7 @@ def web_scrape_md(
2519
2519
| 200 | Yes — 1 credit, or 2 credits with actions | Successful scrape, including a zero-length result when includeSelectors matched nothing. A partial result (`finalDOMState: "still-loading"`, only with timeoutOpts.behavior=return-partial) is billed at the base 1 credit with no OCR or actions surcharge |
2520
2520
| 400 | No | Invalid input, skipped PDF, or the page could not be scraped. error_code WEBSITE_BLOCKED specifically means the site answered with an anti-bot challenge, CAPTCHA wall, or login shell instead of the page (even when the site returned HTTP 200) — retrying later or from another country sometimes succeeds |
2521
2521
| 401 / 403 | No | Invalid/disabled key, insufficient permissions, or credits exhausted; inspect error_code |
2522
-
| 404 | No | Target page returned or fingerprinted as not found |
2522
+
| 404 | Yes — 1 credit, or 2 credits with actions | Target page returned or fingerprinted as not found |
2523
2523
| 408 | No | Request timed out. With timeoutOpts.behavior=return-partial this only happens when nothing usable had rendered by the deadline |
2524
2524
| 413 | No | Target content exceeds the maximum supported size (20 MB) |
2525
2525
| 415 | No | Unsupported content type |
@@ -5530,7 +5530,7 @@ async def web_scrape_md(
5530
5530
| 200 | Yes — 1 credit, or 2 credits with actions | Successful scrape, including a zero-length result when includeSelectors matched nothing. A partial result (`finalDOMState: "still-loading"`, only with timeoutOpts.behavior=return-partial) is billed at the base 1 credit with no OCR or actions surcharge |
5531
5531
| 400 | No | Invalid input, skipped PDF, or the page could not be scraped. error_code WEBSITE_BLOCKED specifically means the site answered with an anti-bot challenge, CAPTCHA wall, or login shell instead of the page (even when the site returned HTTP 200) — retrying later or from another country sometimes succeeds |
5532
5532
| 401 / 403 | No | Invalid/disabled key, insufficient permissions, or credits exhausted; inspect error_code |
5533
-
| 404 | No | Target page returned or fingerprinted as not found |
5533
+
| 404 | Yes — 1 credit, or 2 credits with actions | Target page returned or fingerprinted as not found |
5534
5534
| 408 | No | Request timed out. With timeoutOpts.behavior=return-partial this only happens when nothing usable had rendered by the deadline |
5535
5535
| 413 | No | Target content exceeds the maximum supported size (20 MB) |
0 commit comments