Skip to content

Commit fc642b8

Browse files
author
stlc-bot
committed
feat(billing): charge for 404s and skip fraud accounting (#1152)
Stainless-Generated-From: 085f22791719d5094cd440be079de41260614133
1 parent fdeed5b commit fc642b8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/context/dev/resources/web.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2519,7 +2519,7 @@ def web_scrape_md(
25192519
| 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 |
25202520
| 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 |
25212521
| 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 |
25232523
| 408 | No | Request timed out. With timeoutOpts.behavior=return-partial this only happens when nothing usable had rendered by the deadline |
25242524
| 413 | No | Target content exceeds the maximum supported size (20 MB) |
25252525
| 415 | No | Unsupported content type |
@@ -5530,7 +5530,7 @@ async def web_scrape_md(
55305530
| 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 |
55315531
| 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 |
55325532
| 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 |
55345534
| 408 | No | Request timed out. With timeoutOpts.behavior=return-partial this only happens when nothing usable had rendered by the deadline |
55355535
| 413 | No | Target content exceeds the maximum supported size (20 MB) |
55365536
| 415 | No | Unsupported content type |

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)