tunnelmole
Version:
Tunnelmole, an open source ngrok alternative. Instant public URLs for any http/https based application. Available as a command line application or as an NPM dependency for your code. Stable and maintained. Good test coverage. Works behind firewalls
136 lines (135 loc) • 5.27 kB
TypeScript
/**
* HTTP Status Codes
*/
declare const HTTP_CONTINUE = 100;
declare const HTTP_SWITCHING_PROTOCOLS = 101;
declare const HTTP_PROCESSING = 102;
declare const HTTP_EARLY_HINTS = 103;
declare const HTTP_OK = 200;
declare const HTTP_CREATED = 201;
declare const HTTP_ACCEPTED = 202;
declare const HTTP_NON_AUTHORITATIVE_INFORMATION = 203;
declare const HTTP_NO_CONTENT = 204;
declare const HTTP_RESET_CONTENT = 205;
declare const HTTP_PARTIAL_CONTENT = 206;
declare const HTTP_MULTI_STATUS = 207;
declare const HTTP_ALREADY_REPORTED = 208;
declare const HTTP_IM_USED = 226;
declare const HTTP_MULTIPLE_CHOICES = 300;
declare const HTTP_MOVED_PERMANENTLY = 301;
declare const HTTP_FOUND = 302;
declare const HTTP_SEE_OTHER = 303;
declare const HTTP_NOT_MODIFIED = 304;
declare const HTTP_USE_PROXY = 305;
declare const HTTP_RESERVED = 306;
declare const HTTP_TEMPORARY_REDIRECT = 307;
declare const HTTP_PERMANENT_REDIRECT = 308;
declare const HTTP_BAD_REQUEST = 400;
declare const HTTP_UNAUTHORIZED = 401;
declare const HTTP_PAYMENT_REQUIRED = 402;
declare const HTTP_FORBIDDEN = 403;
declare const HTTP_NOT_FOUND = 404;
declare const HTTP_METHOD_NOT_ALLOWED = 405;
declare const HTTP_NOT_ACCEPTABLE = 406;
declare const HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;
declare const HTTP_REQUEST_TIMEOUT = 408;
declare const HTTP_CONFLICT = 409;
declare const HTTP_GONE = 410;
declare const HTTP_LENGTH_REQUIRED = 411;
declare const HTTP_PRECONDITION_FAILED = 412;
declare const HTTP_PAYLOAD_TOO_LARGE = 413;
declare const HTTP_URI_TOO_LONG = 414;
declare const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
declare const HTTP_RANGE_NOT_SATISFIABLE = 416;
declare const HTTP_EXPECTATION_FAILED = 417;
declare const HTTP_IM_A_TEAPOT = 418;
declare const HTTP_MISDIRECTED_REQUEST = 421;
declare const HTTP_UNPROCESSABLE_ENTITY = 422;
declare const HTTP_LOCKED = 423;
declare const HTTP_FAILED_DEPENDENCY = 424;
declare const HTTP_TOO_EARLY = 425;
declare const HTTP_UPGRADE_REQUIRED = 426;
declare const HTTP_PRECONDITION_REQUIRED = 428;
declare const HTTP_TOO_MANY_REQUESTS = 429;
declare const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
declare const HTTP_UNAVAILABLE_FOR_LEGAL_REASONS = 451;
declare const HTTP_INTERNAL_SERVER_ERROR = 500;
declare const HTTP_NOT_IMPLEMENTED = 501;
declare const HTTP_BAD_GATEWAY = 502;
declare const HTTP_SERVICE_UNAVAILABLE = 503;
declare const HTTP_GATEWAY_TIMEOUT = 504;
declare const HTTP_VERSION_NOT_SUPPORTED = 505;
declare const HTTP_VARIANT_ALSO_NEGOTIATES = 506;
declare const HTTP_INSUFFICIENT_STORAGE = 507;
declare const HTTP_LOOP_DETECTED = 508;
declare const HTTP_NOT_EXTENDED = 510;
declare const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511;
/**
* Human readable translations for each HTTP status code.
*/
declare const HTTP_STATUS_MESSAGES: {
100: string;
101: string;
102: string;
103: string;
200: string;
201: string;
202: string;
203: string;
204: string;
205: string;
206: string;
207: string;
208: string;
226: string;
300: string;
301: string;
302: string;
303: string;
304: string;
305: string;
306: string;
307: string;
308: string;
400: string;
401: string;
402: string;
403: string;
404: string;
405: string;
406: string;
407: string;
408: string;
409: string;
410: string;
411: string;
412: string;
413: string;
414: string;
415: string;
416: string;
417: string;
418: string;
421: string;
422: string;
423: string;
424: string;
425: string;
426: string;
428: string;
429: string;
431: string;
451: string;
500: string;
501: string;
502: string;
503: string;
504: string;
505: string;
506: string;
507: string;
508: string;
510: string;
511: string;
};
export { HTTP_CONTINUE, HTTP_SWITCHING_PROTOCOLS, HTTP_PROCESSING, HTTP_EARLY_HINTS, HTTP_OK, HTTP_CREATED, HTTP_ACCEPTED, HTTP_NON_AUTHORITATIVE_INFORMATION, HTTP_NO_CONTENT, HTTP_RESET_CONTENT, HTTP_PARTIAL_CONTENT, HTTP_MULTI_STATUS, HTTP_ALREADY_REPORTED, HTTP_IM_USED, HTTP_MULTIPLE_CHOICES, HTTP_MOVED_PERMANENTLY, HTTP_FOUND, HTTP_SEE_OTHER, HTTP_NOT_MODIFIED, HTTP_USE_PROXY, HTTP_RESERVED, HTTP_TEMPORARY_REDIRECT, HTTP_PERMANENT_REDIRECT, HTTP_BAD_REQUEST, HTTP_UNAUTHORIZED, HTTP_PAYMENT_REQUIRED, HTTP_FORBIDDEN, HTTP_NOT_FOUND, HTTP_METHOD_NOT_ALLOWED, HTTP_NOT_ACCEPTABLE, HTTP_PROXY_AUTHENTICATION_REQUIRED, HTTP_REQUEST_TIMEOUT, HTTP_CONFLICT, HTTP_GONE, HTTP_LENGTH_REQUIRED, HTTP_PRECONDITION_FAILED, HTTP_PAYLOAD_TOO_LARGE, HTTP_URI_TOO_LONG, HTTP_UNSUPPORTED_MEDIA_TYPE, HTTP_RANGE_NOT_SATISFIABLE, HTTP_EXPECTATION_FAILED, HTTP_IM_A_TEAPOT, HTTP_MISDIRECTED_REQUEST, HTTP_UNPROCESSABLE_ENTITY, HTTP_LOCKED, HTTP_FAILED_DEPENDENCY, HTTP_TOO_EARLY, HTTP_UPGRADE_REQUIRED, HTTP_PRECONDITION_REQUIRED, HTTP_TOO_MANY_REQUESTS, HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE, HTTP_UNAVAILABLE_FOR_LEGAL_REASONS, HTTP_INTERNAL_SERVER_ERROR, HTTP_NOT_IMPLEMENTED, HTTP_BAD_GATEWAY, HTTP_SERVICE_UNAVAILABLE, HTTP_GATEWAY_TIMEOUT, HTTP_VERSION_NOT_SUPPORTED, HTTP_VARIANT_ALSO_NEGOTIATES, HTTP_INSUFFICIENT_STORAGE, HTTP_LOOP_DETECTED, HTTP_NOT_EXTENDED, HTTP_NETWORK_AUTHENTICATION_REQUIRED, HTTP_STATUS_MESSAGES, };