Special_menu_item_class is a project mainly written in PHP, it's free.
For drupal. it is small module but useful
404: Not Found