Skip to main content

Class: HTTPError

Represents an HTTP Error.

Hierarchy​

  • Error

    ↳ HTTPError

Constructors​

constructor​

• new HTTPError(error, status, path, maxAge, method?)

Parameters​

NameType
errorany
statusnumber
pathstring
maxAgenumber
method?string

Overrides​

Error.constructor

Defined in​

rest/HTTPError.ts:46

Properties​

message​

• message: string

The message of this errored request.

Overrides​

Error.message

Defined in​

rest/HTTPError.ts:24


method​

• method: string

The HTTP method of this request.

Defined in​

rest/HTTPError.ts:27


reason​

• reason: string

The reason of this errored request.

Expected values are notFound, notInWar, accessDenied, accessDenied.invalidIp, privateWarLog, badRequest, requestThrottled, inMaintenance, requestAborted and unknownException.

Defined in​

rest/HTTPError.ts:35


status​

• status: number

The HTTP status code of this request.

Defined in​

rest/HTTPError.ts:38


path​

• path: string

The path of this request.

Defined in​

rest/HTTPError.ts:41


maxAge​

• maxAge: number

Maximum number of milliseconds the results can be cached.

Defined in​

rest/HTTPError.ts:44