> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 1.31.4

**`(fix):`** 修复当错误在不同命名空间中声明而非引用它们的端点命名空间时，子包 ErrorCodes 映射为空的问题。生成器现在按使用错误的服务命名空间（通过端点错误引用）对错误进行分组，而不是按声明位置分组。这确保像 `audio/` 这样的子包正确获得填充的 ErrorCodes，包含类型化错误（例如 BadRequestError、UnauthorizedError），而不是导致 API 错误作为通用 `*core.APIError` 返回的空映射。