> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xhuoapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 오류

> 오류 응답 형식과 HTTP 상태 코드.

오류는 `error` 객체를 담은 JSON으로 반환됩니다:

```json theme={null}
{
  "error": {
    "message": "…",
    "type": "…",
    "code": "…"
  }
}
```

| 상태 코드 | 의미 |
| - | - |
| `400` | 잘못된 요청 파라미터 |
| `401` | API 키가 없거나 유효하지 않음 |
| `404` | 경로가 없음(대개 URL 오타) |
| `429` | 요청 빈도 초과 |
| `500` | 서버 내부 오류 |
| `503` | 이 모델에 현재 사용 가능한 상위 서비스가 없거나 모델 이름이 없습니다. 잠시 후 다시 시도하거나 다른 모델로 바꾸세요 |

error.message 문구는 바뀔 수 있습니다. 메시지 문자열이 아니라 HTTP 상태 코드로 처리하세요.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.