Crypto SDK
    Preparing search index...

    Class CryptoApiError

    Error thrown when the Crypto API returns a non-OK HTTP response. Its body is the RFC 9457 problem the server sent.

    try {
    await client.sign({ keyId: 'k_unknown0000000000000000', message: 'x' });
    } catch (err) {
    if (err instanceof CryptoApiError) {
    console.error(err.status, err.body.type, err.body.detail);
    }
    }

    Hierarchy

    • Error
      • CryptoApiError
    Index
    status: number

    HTTP status code returned by the API.

    body: ApiError

    Parsed problem details body.