Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hendrysadrak/27ed1703c30c26d9efbcf68af3d13497 to your computer and use it in GitHub Desktop.
Save hendrysadrak/27ed1703c30c26d9efbcf68af3d13497 to your computer and use it in GitHub Desktop.
Crawlera Errors Typescript Enum Definition
enum CrawleraError {
banned = 'banned',
noslaves = 'noslaves',
bad_session_id = 'bad_session_id',
user_session_limit = 'user_session_limit',
invalid_request = 'invalid_request',
bad_uri = 'bad_uri',
user_suspended = 'user_suspended',
bad_proxy_auth = 'bad_proxy_auth',
too_many_conns = 'too_many_conns',
header_auth = 'header_auth',
client_conn_closed = 'client_conn_closed',
nxdomain = 'nxdomain',
ehostunreach = 'ehostunreach',
econnrefused = 'econnrefused',
econnreset = 'econnreset',
socket_closed_remotely = 'socket_closed_remotely',
ssl_tunnel_error = 'ssl_tunnel_error',
serverbusy = 'serverbusy',
timeout = 'timeout',
msgtimeout = 'msgtimeout',
domain_forbidden = 'domain_forbidden',
bad_header = 'bad_header',
data_error = 'data_error',
bad_endpoint = 'bad_endpoint',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment