# Error codes for the SDK

The various hooks, services, and functions provided by the SDK can return different error codes in case of an error. Here is the list of error codes that you can expect from the SDK:

```typescript
enum MarketplaceErrorCodes {
  InsufficientBalance = 'InsufficientBalance',
  InvalidArgumentsError = 'InvalidArgumentsError',
  InvalidNetworkArgument = 'InvalidNetworkArgument',
  NetworkRequestError = 'NetworkRequestError',
  PropertyUndefinedError = 'PropertyUndefinedError',
  ServerError = 'ServerError',
}
```

* `InsufficientBalance` - The wallet does not have enough balance to perform the action.
* `InvalidArgumentsError` - The arguments provided to a function are invalid or undefined.
* `InvalidNetworkArgument` - The network argument provided to a function is invalid.
* `NetworkRequestError` - There was an error thrown while making a `http` network request.
* `PropertyUndefinedError` - A required property is undefined or not det properly for a class.
* `ServerError` - There was an error thrown by the internal functions call in the SDK.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lync-1.gitbook.io/lync/fuel/fuel-marketplace-npm-sdk/using-the-sdk/error-codes-for-the-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
