I have a scenario where my route path is specified as ":type" but the type could be either "music" or "video" as per the implementation (more type to come in future). Here I want to show 404 page if type is not "music"/"video".
I'm using react-router@v6
Is there a way to handle this situation?