thread-master/apps/backend/internal/logic/radar/notready.go

15 lines
439 B
Go
Raw Normal View History

2026-08-03 05:52:02 +00:00
package radar
import (
"fmt"
radarDomain "apps/backend/internal/module/radar/domain"
)
// notReady is returned by every radar capability that is routed but not implemented yet.
// It maps to HTTP 501 / code 501010 in internal/response, so a caller can never mistake
// a missing implementation for a successful empty result.
func notReady(capability string) error {
return fmt.Errorf("%w: %s", radarDomain.ErrNotReady, capability)
}