Show Drupal 404 page programmatically. Just return this function from your page function.
Source code viewerreturn drupal_not_found();Programming Language: PHP