> 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.20.0

**`(feat):`** 添加 `errorCodes` 配置选项，值为 `per-endpoint` 或 `global`。`global` 模式（默认）为所有错误生成共享的 `error_codes.go` 文件。`per-endpoint` 模式为每个端点内联生成错误处理代码，对于命名空间 API 或不同端点对同一状态码具有不同错误模式的 API 更加稳健。