Crypto SDK
    Preparing search index...

    Class CryptoApiError

    Error thrown when the Crypto API returns a non-OK HTTP response.

    try {
    await client.hash({ algorithm: 'invalid', data: 'x' });
    } catch (err) {
    if (err instanceof CryptoApiError) {
    console.error(err.status, err.body.error);
    }
    }

    Hierarchy

    • Error
      • CryptoApiError
    Index
    status: number

    HTTP status code returned by the API.

    body: ApiError

    Parsed error response body.