TL;DR: A failed request through a proxy can be a connection failure, a rejected tunnel, an intermediary-generated response, or an origin response. Identify the stage and the component reporting the problem before changing credentials, timeouts, or retry behavior. A status code alone does not establish the root cause.
Your scraper reports a 502, and the immediate suggestion is to rotate the proxy. That might change the result, but it does not explain it. The failure could belong to your forward proxy, the destination's gateway, or another service between the two.
Proxy status errors are HTTP error responses and related connection failures encountered while a request travels through an intermediary. The phrase is useful operational shorthand, but it is not one standardized error category. An HTTP response, a client exception, and a provider-specific error field must be interpreted separately.
For developers collecting data, the objective is to isolate the failing stage and choose a bounded response. Retrying a temporary connection problem is different from retrying rejected authentication. Saving an error page as a product record is a separate failure again, even if your request library considers the transfer complete.
This guide provides a diagnostic sequence, a status-code reference, and a practical structure for failure reports. It assumes you are using approved sources and credentials. Troubleshooting should restore an authorized workflow, not work around a source's access restrictions or hide repeated requests behind a growing list of network changes.




