in reply to Plack Custom Error Document

Copy errordocument.pm . rename it. Modify to do what you want