title: The best way to deal with 404 errors in MVC?
body: <p>So I wrote my PHP MVC framework, and have Dispatcher class that can instantiate appropriate Controller class and call defined method passing arguments.</p>
  
  <p>Now inside Dispatcher I check if this Controller exists and if method exists, what should I do if controller or method does not exist?</p>
  
  <p>At the moment I just return HTTP Object that prints 404 - Page not found.
  But there is no way for me to customize this message from inside application, and I want to provide users a way to customize 404 messages without editing dispatcher.</p>
  
  <p>Is a good way to go to always have Error controller that would get instantiated when there is a error, and that would load lets say Error404.html view file?
  So users would be able to customize this view file to fit their application design.</p>
  
  <p>Is there any other way to achive this? And what would be the best way to return error from dispatcher, and let "users" or developers that are working on that MVC to easily customize 404 and other messages?</p>
  
  <p>Thanks!</p>