# API errors

在使用 Afarensis API 时，您可能会遇到一些错误代码。以下是错误代码的概述、原因及相应的解决方案。

401 - 无效的认证

原因：无效的认证。 解决方案：确保使用正确的 API 密钥和请求组织。 401 - 提供了错误的 API 密钥

原因：请求的 API 密钥不正确。 解决方案：确保使用的 API 密钥是正确的，清除浏览器缓存，或生成一个新的。 401 - 必须是组织的成员才能使用 API

原因：您的账户不属于任何组织。 解决方案：联系我们加入一个新组织，或请求您的组织管理员邀请您加入组织。 429 - 达到请求的速率限制

原因：您发送请求的速度过快。 解决方案：控制请求的速度。阅读速率限制指南。 429 - 已超出当前配额，请检查您的计划和计费详情

原因：您已用完信用额度或达到每月最大支出限额。 解决方案：购买更多信用额度或了解如何增加限额。 500 - 服务器在处理您的请求时出错

原因：我们的服务器出现问题。 解决方案：在稍等片刻后重试您的请求，如果问题持续存在，请联系我们。检查状态页面。 503 - 引擎当前过载，请稍后再试

原因：我们的服务器正在经历高流量。 解决方案：在稍等片刻后重试您的请求。 处理这些错误时，请根据提供的指南采取适当的措施。如果您在处理这些问题时遇到困难，欢迎联系我们以获得进一步的帮助。


---

# 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://doc.afarensis.com/cuo-wu-dai-ma/api-errors.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.
