When dealing with errors in DD4T, especially when you are running locally in your development environment, 404 errors can become quite a regular thing.
You can go with the classic 404 configuration from the Web.Config, but then your DD4T environment... Read the full text.