# response codes

## 200 - Success

Response Sample (JSON)

```javascript
{
  "code": 200,
  "message": "Success"
}
```

{% hint style="info" %}
Success
{% endhint %}

## 1000 - invalid request data

Response Sample (JSON)

```javascript
{
  "code": 1000,
  "message": "invalid request data",
  "errors": [
    {
      "msg": "Invalid value",
      "param": "x-agent-api-token",
      "location": "headers"
    }
  ]
}
```

{% hint style="info" %}
In case when the required input parameter is omitted or parameter type does not match
{% endhint %}

## 1001 - not found data. check parameters

Response Sample (JSON)

```javascript
{
  "code": 1001,
  "message": "not found data. check parameters"
}
```

{% hint style="info" %}
Data not found
{% endhint %}

## 1002 - agent api access token validate failed

Response Sample (JSON)

```javascript
{
  "code": 1002,
  "message": "agent api access token validate failed"
}
```

{% hint style="info" %}
Agent api access token error
{% endhint %}

## 1003 - agent service error

Response Sample (JSON)

```javascript
{
  "code": 1003,
  "message": "agent Service Error",
  "errors": {
  }
}
```

{% hint style="info" %}
Agent service exception error
{% endhint %}

## 1100 - internal service error

Response Sample (JSON)

```javascript
{
  "code": 1100,
  "message": "Internal Service Error",
  "errors": {
    "code": 3050001,
    "what": "Account name already exists"
  }
}
```

{% hint style="info" %}
External interface processing error
{% endhint %}

## 1201 - exist session id

Response Sample (JSON)

```javascript
{
  "code": 1201,
  "message": "exist session id"
}
```

{% hint style="info" %}
Duplication error addsymmetrickey session id&#x20;
{% endhint %}

## 1202 - not enough budget

Response Sample (JSON)

```javascript
{
  "code": 1202,
  "message": "not enough budget"
}
```

{% hint style="info" %}
Insufficient sp budge error&#x20;
{% endhint %}

## 1203 - invalid auth token

Response Sample (JSON)

```javascript
{
  "code": 1203,
  "message": "invalid auth token"
}
```

{% hint style="info" %}
sp auth token error
{% endhint %}

## 1300 - failed to verify

Response Sample (JSON)

```javascript
{
  "code": 1300,
  "message": "failed to verify"
}
```

{% hint style="info" %}
auth verification failed
{% endhint %}


---

# 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://dev-en.omnione.net/how-to-check-blockchain-data/check-agent-api/untitled-10.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.
