> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ErrorCode - Go SDK

> ErrorCode type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

## Example Usage

```go lines theme={null}
import (
	"github.com/OpenRouterTeam/go-sdk/models/components"
)

value := components.ErrorCodeInvalidToolInput

// Open enum: custom values can be created with a direct type cast
custom := components.ErrorCode("custom_value")
```

## Values

| Name                        | Value                |
| --------------------------- | -------------------- |
| `ErrorCodeInvalidToolInput` | invalid\_tool\_input |
| `ErrorCodeUnavailable`      | unavailable          |
| `ErrorCodeMaxUsesExceeded`  | max\_uses\_exceeded  |
| `ErrorCodeTooManyRequests`  | too\_many\_requests  |
| `ErrorCodeQueryTooLong`     | query\_too\_long     |
