Drupal Views pager shows last page when higher pager value is entered manually instead of page not found
Found a way out!!..
I used theme_pager and global variable $pager_total

Here is the code


/**
 * Implements theme_pager
 */
function theme_pager($variables) {
  global $pager_total;
  if ($_GET['page'] > $pager_total[0]) {
    drupal_not_found();
    exit;
  }
}