Files
goclaw/pkg/protocol/errors.go
T
Viet Tran f3f4c67b36 Initial commit: GoClaw AI agent gateway
Multi-agent AI gateway with WebSocket RPC, HTTP API, and messaging channel integrations.
Go port of OpenClaw with multi-tenant PostgreSQL, per-user isolation, security hardening,
and production observability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 14:58:07 +07:00

19 lines
571 B
Go

package protocol
// Error codes from OpenClaw source (ErrorCodes enum in error-codes.ts)
const (
ErrInvalidRequest = "INVALID_REQUEST"
ErrUnavailable = "UNAVAILABLE"
ErrNotLinked = "NOT_LINKED"
ErrNotPaired = "NOT_PAIRED"
ErrAgentTimeout = "AGENT_TIMEOUT"
// Additional codes for Go implementation
ErrUnauthorized = "UNAUTHORIZED"
ErrNotFound = "NOT_FOUND"
ErrAlreadyExists = "ALREADY_EXISTS"
ErrResourceExhausted = "RESOURCE_EXHAUSTED"
ErrFailedPrecondition = "FAILED_PRECONDITION"
ErrInternal = "INTERNAL"
)