Filtering types of collision reactions in a different way

I know I am able to filter collision using category and bitmask fields.
And then test if I should collide in onContactBegin

But is there away where I can describe each body as static for a number of bodies
and dynamic for others.
So this way I can filter and vary how the body reacts when it interacts with another.
How can I achieve this?