ScraperAPI: Error Handling & Operational Reliability
Test-backedScraperAPI returns the scraped page's status code in the X-StatusCode response header, plus its own HTTP status: 200 for successful scrapes (even if the target page returned a 404), 500/503 for ScraperAPI-side failures. Failed JavaScript renders, CAPTCHA failures, and IP blocks return appropriate status codes. The async endpoint returns a job ID for polling. Retry logic for blocked requests is handled internally. Error responses include a message field. Credit depletion returns 401.