@inrupt/solid-client / resource/resource / FetchError

Class: FetchError

resource/resource.FetchError

Extends the regular JavaScript error object with access to the status code and status message.

since 1.2.0

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new FetchError(message, errorResponse)

Parameters

Name

Type

message

string

errorResponse

Response & { ok: false }

Properties

response

Readonly response: Response & { ok: false }

since 1.3.0

Accessors

statusCode

get statusCode(): number

Returns

number


statusText

get statusText(): undefined | string

Returns

undefined | string