apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.

Home Page:https://www.npmjs.com/package/proxy-chain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing documentation for failMsg option

jancurn opened this issue · comments

Subject says it all.

Also I'd suggest using more descriptive name, e.g. errorMessage

And also add httpStatus that will be returned to user. By default the proxy returns 407 but e.g. if it's invalid hostname, it should return 502 Bad Gateway.

failMsg is now described in README, custom error can be done using RequestError