proxy-connection
Version:
Proxy client with automatic connection management, health checking, and fetch-like API
24 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorCodesConfigMapping = exports.errorMessages = exports.errorCodes = void 0;
exports.errorCodes = {
NO_ALIVE_PROXIES: 'NO_ALIVE_PROXIES',
NO_PROXIES: 'NO_PROXIES',
REQUEST_FAILED: 'REQUEST_FAILED',
REQUEST_TIMEOUT: 'REQUEST_TIMEOUT',
REQUEST_BODY_ERROR: 'REQUEST_BODY_ERROR',
UNKNOWN_ERROR: 'UNKNOWN_ERROR'
};
exports.errorMessages = {
[exports.errorCodes.NO_ALIVE_PROXIES]: 'No live proxies available',
[exports.errorCodes.NO_PROXIES]: 'No proxies provided',
[exports.errorCodes.REQUEST_FAILED]: 'Request failed',
[exports.errorCodes.REQUEST_TIMEOUT]: 'Request timed out',
[exports.errorCodes.REQUEST_BODY_ERROR]: 'Error writing request body, serialization failed',
[exports.errorCodes.UNKNOWN_ERROR]: 'Unknown error occurred'
};
exports.errorCodesConfigMapping = {
REQUEST_FAILED: 'onErrorRetries',
REQUEST_TIMEOUT: 'onTimeoutRetries'
};
//# sourceMappingURL=errorCodes.js.map