Skip to content

Commit 525c932

Browse files
author
stlc-bot
committed
feat(billing): charge for 404s and skip fraud accounting (#1152)
Stainless-Generated-From: 0aced9f
1 parent 5527aa6 commit 525c932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎web.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (r *WebService) WebScrapeImages(ctx context.Context, query WebWebScrapeImag
179179
// | 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 |
180180
// | 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 |
181181
// | 401 / 403 | No | Invalid/disabled key, insufficient permissions, or credits exhausted; inspect error_code |
182-
// | 404 | No | Target page returned or fingerprinted as not found |
182+
// | 404 | Yes — 1 credit, or 2 credits with actions | Target page returned or fingerprinted as not found |
183183
// | 408 | No | Request timed out. With timeoutOpts.behavior=return-partial this only happens when nothing usable had rendered by the deadline |
184184
// | 413 | No | Target content exceeds the maximum supported size (20 MB) |
185185
// | 415 | No | Unsupported content type |

0 commit comments

Comments
 (0)