> For the complete documentation index, see [llms.txt](https://docs.50spays.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.50spays.com/ko/reference/error-codes.md). Agents can also search and read this documentation through its [MCP server](https://docs.50spays.com/~gitbook/mcp).

# 오류 코드

Merchant API 오류 엔벨로프와 코드 카탈로그

## 오류 엔벨로프

```json
{
  "ok": false,
  "code": 402,
  "message": "human readable error message"
}
```

## 코드

| 코드    | 이름                      | 설명                            |
| ----- | ----------------------- | ----------------------------- |
| `400` | `BAD_REQUEST`           | 잘못된 형식의 요청                    |
| `401` | `UNAUTHORIZED`          | Auth / 서명 오류                  |
| `402` | `WRONG_PARAM`           | 유효하지 않거나 누락된 필드               |
| `403` | `FORBIDDEN`             | 접근 거부                         |
| `404` | `NOT_FOUND`             | 리소스 없음                        |
| `406` | `GATEWAY_ORDER`         | 현재 파라미터에 맞는 trader / 결제 수단 없음 |
| `407` | `GATEWAY_VA_REGISTERED` | 가상계좌가 이미 등록됨                  |
| `500` | `INTERNAL_SERVER_ERROR` | 예기치 않은 서버 오류                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.50spays.com/ko/reference/error-codes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
