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

15 lines
429 B
Go
Raw Normal View History

2026-08-03 05:52:02 +00:00
package crm
import (
"fmt"
crmDomain "apps/backend/internal/module/crm/domain"
)
// notReady is returned by every crm 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", crmDomain.ErrNotReady, capability)
}