MooseX-Error-Trap is a project mainly written in Perl, it's free.
Trap errors with deligation
404: Not Found