package oncall

const (
	ErrorCodeInvalidArgument  = "INVALID_ARGUMENT"
	ErrorCodeUnauthenticated  = "UNAUTHENTICATED"
	ErrorCodePermissionDenied = "PERMISSION_DENIED"
	ErrorCodeTeamNotFound     = "TEAM_NOT_FOUND"
	ErrorCodeInternal         = "INTERNAL_ERROR"
)

// ErrorResponse is the stable error envelope returned by service-facing APIs.
// Error is retained as a compatibility alias for existing web clients.
type ErrorResponse struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Error   string `json:"error"`
}
