ドキュメント

クラス:PermissionDeniedError

クラス:PermissionDeniedError

HTTP 403:アクセスが拒否されました。

継承元

コンストラクター

コンストラクター

new PermissionDeniedError(
   status,
   body,
   headers,
   message?
): PermissionDeniedError;

パラメーター

status

number

body

unknown

headers

Headers

message?

string

戻り値

PermissionDeniedError

継承元

APIError.constructor

プロパティ

body

readonly body: unknown;

パースされた JSON、応答テキスト、本文が空の場合は undefined。

継承元

APIError.body


headers

readonly headers: Headers;

HTTP 応答ヘッダー。

継承元

APIError.headers


requestId

readonly requestId: string | undefined;

x-typesafe-request-id からのリクエスト ID。存在しない場合は undefined。

継承元

APIError.requestId


status

readonly status: number;

HTTP 応答のステータスコード。

継承元

APIError.status

メソッド

fromResponse()

static fromResponse(
   status,
   body,
   headers
): APIError;

HTTP ステータスコードに対応するエラーのサブクラスを作成します。

パラメーター

status

number

body

unknown

headers

Headers

戻り値

APIError

継承元

APIError.fromResponse