Skip to content

Class: HTTPError

Defined in: particiapp-web-client.js:238

The HTTPError class represents an error due to an unknonw HTTP error.

Extends

Extended by

Constructors

new HTTPError()

new HTTPError(status, message?): HTTPError

Defined in: particiapp-web-client.js:244

The constructor returns a newly created HTTPError object.

Parameters

status

number

The HTTP status code returned by the server.

message?

string = "Unknown HTTP error"

A human-readable description of the error.

Returns

HTTPError

Overrides

ParticiapiError.constructor

Properties

cause?

optional cause: unknown;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from

ParticiapiError.cause


message

message: string;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from

ParticiapiError.message


name

name: string;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

ParticiapiError.name


stack?

optional stack: string;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from

ParticiapiError.stack


status

status: number;

Defined in: particiapp-web-client.js:246