---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / isFallbackTrigger

# Function: isFallbackTrigger()

> **isFallbackTrigger**(`error`): `boolean`

Defined in: [packages/b2c-tooling-sdk/src/clients/scapi-backend-utils.ts:170](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/clients/scapi-backend-utils.ts#L170)

Detects whether an error should trigger an OCAPI fallback. Currently:
  - [isInvalidScopeError](isInvalidScopeError.md): AM rejected the requested scope.
  - [ScapiCapabilityUnsupportedError](../classes/ScapiCapabilityUnsupportedError.md): the SCAPI surface lacks the
    capability the caller asked for.
  - [ScapiRequestError](../classes/ScapiRequestError.md): SCAPI definitively rejected the request with
    a safe client-error status.

## Parameters

### error

`unknown`

## Returns

`boolean`
