Tgrosinger dev

Invalid pages now use proper error pages.