telegramx.js

HTTPError

class

extends Error

Thrown for transport-level failures (network errors, timeouts, non-JSON responses).

Declaration

declare class HTTPError extends Error 

Properties

methodproperty#
readonly method: string;
statusproperty#
readonly status?: number;

Methods

(constructor)constructor#
constructor(method: string, message: string, status?: number);

Constructs a new instance of the HTTPError class