> This page is for SDKs, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> 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):`** Add `errorCodes` config option with values `per-endpoint` or `global`. The `global` mode (default)
generates a shared `error_codes.go` file for all errors. The `per-endpoint` mode generates error
handling code inline for each endpoint, which is more robust for namespaced APIs or APIs where
different endpoints have different error schemas for the same status code.