Skip to content

ErrorResponse interface in the BitBadges TypeScript SDK (bitbadges on npm): signature, properties, methods, and usage.

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/base.ts:31

If an error occurs, the response will be an ErrorResponse.

400 - Bad Request (e.g. invalid request body) 401 - Unauthorized 500 - Internal Server Error

Properties

error?

optional error?: string

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/base.ts:35

Serialized error object for debugging purposes. Technical users can use this to debug issues.


errorMessage

errorMessage: string

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/base.ts:39

UX-friendly error message that can be displayed to the user. Always present if error.


unauthorized?

optional unauthorized?: boolean

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/base.ts:43

Authentication error. Present if the user is not authenticated.

Edit this page on GitHub