Generate 404s consistently when querying something that does not exist
|Reported by:||markjaquith||Owned by:||ryan|
WordPress 404s are inconsistent. /2010/02/this-is-not-a-real-post/ will generate a 404, but ?p=99999 where there is no post ID 99999 serves a 200. There are many other examples. The result is that 200s are served, and the template for the type of thing you queried against (but failed) will be used, instead of the 404 template.
If a query does not return posts and does not match a specified queried object, WordPress should return a 404, and use the 404 template.
WordPress returns 200s for things like ?cat=9999999 ?p=999999 etc.