mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-06-10 16:10:59 +00:00
f3f4c67b36
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>
19 lines
571 B
Go
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"
|
|
)
|