# Error Codes

Any endpoint can return an ERROR

Sample Payload below:

```javascript
{
  "status": false,
  "code": "4001",
  "msg": [
    "API key олдсонгүй"
  ]
}
```

## Error codes for Trade.mn

Errors consist of two parts: an error code and a message. Codes are universal, but messages can vary. Here is the error JSON payload:

```javascript
{
  "status": false,
  "code": "4001",
  "msg": [
    "API key олдсонгүй"
  ]
}
```

**-4001 Validation error**

**-4004 Body parse error**

**-0014 Unavailable error**


---

# 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://docs.trade.mn/api-doc/error-codes.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.
