クラス:AuthenticationError
クラス:AuthenticationError
HTTP 401:認証に失敗しました。
継承元
コンストラクター
コンストラクター
new AuthenticationError(
status,
body,
headers,
message?
): AuthenticationError;
パラメーター
status
number
body
unknown
headers
Headers
message?
string
戻り値
AuthenticationError
継承元
プロパティ
body
readonly body: unknown;
パースされた JSON、応答テキスト、本文が空の場合は undefined。
継承元
headers
readonly headers: Headers;
HTTP 応答ヘッダー。
継承元
requestId
readonly requestId: string | undefined;
x-typesafe-request-id からのリクエスト ID。存在しない場合は undefined。
継承元
status
readonly status: number;
HTTP 応答のステータスコード。
継承元
メソッド
fromResponse()
static fromResponse(
status,
body,
headers
): APIError;
HTTP ステータスコードに対応するエラーのサブクラスを作成します。
パラメーター
status
number
body
unknown
headers
Headers