Skip to content

HTTPError ​

classe · Source

Represents an HTTP error from a request.

Extends: Error

Properties ​

name ​

name: string

The name of the error Source

code ​

code: number

HTTP error code returned from the request Source

method ​

method: string

The HTTP method used for the request Source

path ​

path: string

The path of the request relative to the HTTP endpoint Source

requestData ​

requestData: HTTPErrorData

The data associated with the request that caused this error Source

Methods ​

_sanitizeRequestData ​

static · private

_sanitizeRequestData(data: *): *

Sanitizes request data to prevent credential leakage in error logs Parameters

NameTypeDescription
data*Request data object

Returns: * — Sanitized data Source

Unofficial software. Not affiliated with or supported by Discord.