Turned 404 and 500 handlers into endpoints so that the pages can be
requested explicitly.