how do display 404 while the url didn't exits I add a view contains three display page,and the page urls are:


questions 
questions/my 
questions/unanswered


but when I visit the url questions/s12dsdd ,It display the questions page list all questions,how to display a 404 page ? I found none settings in views.

of course we can handle it in code,but not a good one.... 

other desciptions:


  What he asks (I believe) is how to have 3 displays in one view and with [placeholder], [placeholder/versionone], [placeholder/versiontwo] URLs respectively and get a 404 on [placeholder/somethingrandom]. The second part of the URL does not seem to be an actual argument such as %nid. It's just a literal representation within the URL of what the display is meant to provide. :) @magtak
You can create two views. In one, using questions as URL, you add "Content: Nid" as contextual filter, and use the following settings for that contextual filter.


In When the filter value is NOT in the URL


Select Display all results for the specified field



In When the filter value IS in the URL or a default is provided


Select Specify validation criteria
As Validator, select Content
As Action to take if filter value does not validate select Show "Page not found"





The other view, using questions/mine as URL, would use "Content: Author uid" as criteria, and use a default value taken from the user currently logged-in.