Views contextual filter on just ONE of the listed contenttypes
That really depends on your specific view configuration. Generally speaking, you can add validation (e.g. what content type to accept as contextual filter) and a fallback behavior (e.g. ignore argument vs. show 404), see screenshot. With these instruments you can achieve pretty much.