Anti-Fake-200 HTTP Proxy Gateway: Blocking Silent Payload Corruption
Up to a third of real-world scraping and third-party API failures disguise themselves as HTTP 200 OK responses containing Cloudflare browser checks, expired-session login screens, or empty JSON error objects. FuelRouter intercepts and quarantines every fake-200 before billing or caching.
Five-Stage Anti-Fake-200 Detection Signatures
| Verification Stage | Inspect Scope | Example Trigger Signatures | Classification Code | Router Action |
|---|---|---|---|---|
| 1. HTTP Status Gate | Status code header | 408, 429, 500, 502, 503, 504, 401, 403 | http_error_or_auth_rot | Fail over & increment failure counter |
| 2. CAPTCHA Scan | First 2,048 bytes | cf-turnstile, g-recaptcha, hcaptcha, arkose, datadome, geetest | fake_200_captcha_soft_ban | Quarantine upstream (0.50 penalty), never bypass |
| 3. Login-Wall Scan | First 2,048 bytes | please log in, sign in to continue, session expired, login required | fake_200_login_wall | Fail over & flag credential rotation needed |
| 4. HTML / SPA Shell | First 2,048 bytes | <!doctype html, cf-browser-verification, <div id="root"></div> | fake_200_empty_shell | Reject unhydrated shell & fail over |
| 5. JSON Schema Gate | Full JSON object | ok: false, success: false, error/detail keys, payload < min_bytes | fake_200_json_error | Block cache admission & try next upstream |
Why HTTP Status Codes Alone Fail Production AI Pipelines
Reverse proxies that trust status_code == 200 blindly propagate garbage into retrieval-augmented generation indexes and downstream agent memory. Even worse, caching a single fake-200 poisons every tenant querying that canonical key for days.
FuelRouter aligns directly with steel_core_4/composite_verify.py to inspect headers, the first 2,048 bytes of raw payload text, minimum byte thresholds (16 to 48 bytes depending on pool), and pool-specific required output keys (content, vectors, results, markdown, domain).
Cache-Admission Immunity Against Upstream Degradation
Only payloads that pass all five verification stages are admitted to the cross-tenant archive cache. Upstream errors and fake-200 rejections never overwrite an existing verified cache record.
Each fake-200 hit increments the upstream EWMA fake_200_rate (10% weight in dynamic_health_score), naturally pushing noisy providers to the bottom of the routing table.
Redacted Trace Emitted on Fake-200 Detection & Automatic Failover
{
"ok": true,
"served_by": "scrape_jina_reader_t10_slot",
"charged_micros": 12000,
"trace": [
{
"step": 1,
"upstream_id": "scrape_firecrawl_free",
"outcome": "fake_200_html_marker",
"status_code": 200,
"latency_ms": 142,
"circuit_state": "CLOSED"
},
{
"step": 2,
"upstream_id": "scrape_jina_reader_t10_slot",
"outcome": "hit",
"status_code": 200,
"latency_ms": 618,
"circuit_state": "CLOSED"
}
]
}
Anti-Fake-200 Enforcement Rules Across All 5 Pools
- ai_chat_json requires application/json >= 16 bytes containing non-empty content.
- embeddings_rerank requires application/json >= 24 bytes containing non-empty vectors.
- web_search requires application/json >= 32 bytes containing non-empty results.
- clean_scrape_extract requires application/json >= 48 bytes containing non-empty markdown.
- b2b_domain_dns_enrichment requires application/json >= 24 bytes containing non-empty domain data.
Frequently Asked Technical Questions
Why limit HTML and CAPTCHA text scanning to the first 2,048 bytes?
Scanning the 2,048-byte prefix catches interstitial headers, script loaders, and login walls in sub-millisecond time while avoiding false positives deep inside legitimate scraped blog posts discussing CAPTCHAs.
Does FuelRouter solve CAPTCHAs when an upstream returns a challenge page?
Never. Solving or bypassing anti-bot challenges is a hard security redline. FuelRouter marks the upstream soft-banned and routes to an unchallenged peer.
What happens if an upstream returns HTTP 200 with {"ok": false, "error": "rate_limited"}?
Stage 5 rejects embedded boolean failure keys and failure status strings, skips cache admission, and fails over immediately.
Live Try-Now Console & Machine Discovery
Test failover routing, dry-run quotes, and circuit breaker metrics on the live gateway or connect via JSON-RPC 2.0 MCP.
Related FuelRouter Architecture Guides
- Cross-Tenant API Response Cache & 100% Repeat-Margin Economics — cross-tenant API response cache 100% repeat margin
- Zero-Secret Credential Proxy for Autonomous AI Agents — zero-secret credential proxy for AI agents
- Free-Tier API Quota Rotation Architecture Across 3 Rolling Windows — free tier API quota rotation architecture