Files
galaxy-game/gamemaster/internal/service/livenessreply/errors.go
T
2026-05-03 07:59:03 +02:00

20 lines
773 B
Go

package livenessreply
// Stable error codes returned by Handle as Go-level errors. Liveness
// reply itself never produces a 4xx/5xx response — the endpoint always
// answers 200 — but the service surfaces structural validation
// failures to the handler so it can return the standard error envelope.
const (
// ErrorCodeInvalidRequest reports that the request envelope failed
// structural validation (empty GameID).
ErrorCodeInvalidRequest = "invalid_request"
// ErrorCodeServiceUnavailable reports that a steady-state
// dependency (PostgreSQL) was unreachable for this call.
ErrorCodeServiceUnavailable = "service_unavailable"
// ErrorCodeInternal reports an unexpected error not classified by
// the other codes.
ErrorCodeInternal = "internal_error"
)