[Home](./index.md) > [iceshrimp-sdk](./iceshrimp-sdk.md) > [api](./iceshrimp-sdk.api.md) > [isAPIError](./iceshrimp-sdk.api.isapierror.md) ## api.isAPIError() function **Signature:** ```typescript export declare function isAPIError(reason: any): reason is APIError; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | reason | any | | **Returns:** reason is [APIError](./iceshrimp-sdk.api.apierror.md)