Custom status code

By default, we assume the request is successful as long as it returns a 2xx or 4xx status code. However, sometimes websites return the required content together with a non-standard HTTPS status code. If one of your targets does that, you can indicate which status codes are acceptable and valuable to you. Add the X-Oxylabs-Status-Code header with all the HTTP response codes that work for you.

2xx and 4xx will still be automatically marked as successful.

Web Unblocker counts only the traffic of successfully extracted data. Failed scraping attempts won’t be included in your traffic usage calculation. Both upstream and downstream traffic is calculated.

Code examples

curl -k -v -x \
-U "user:pass1" "" \
-H "X-Oxylabs-Successful-Status-Codes: 500,501,502,503"

Last updated