# shop api error response 안내

## 개요

* 샵바이 api 는 기본적으로 rest api 기반으로 http response code 를 기준으로 에러 여부를 판단할 수 있습니다.
  * 2XX : 성공
  * 4XX : 클라이언트에서 잘못 보낸 경우
  * 5XX : 서버에 이상이 생긴 경우

***

## 일반적인 오류 케이스 샘플

{% code overflow="wrap" %}

```
{
  "timestamp": "2023-03-27 18:38:55",
  "path": "POST /server/profile/accumulations",
  "status": 400,
  "error": [],
  "code": "F0005",
  "message": "회원을 찾을 수 없습니다."
}
```

{% endcode %}

***

## validation 오류 케이스 샘플

{% code overflow="wrap" %}

```
{
  "timestamp": "2023-03-27 18:48:48",
  "path": "POST /server/profile/accumulations",
  "status": 400,
  "error": [
    {
      "property": "reasonDetail",
      "reason": "\"지급 상세사유는 0 까지 입력가능합니다.\""
    }
  ],
  "code": "99999",
  "message": "오류가 발생하였습니다. 잠시 후 다시 시도해 주세요."
}
```

{% endcode %}


---

# 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://workspace-help.nhn-commerce.com/contents/faq/shop-api-error-response.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.
