small refactor so I can execute status codes from anywhere in the app, not just from the SEO plugin. refs #9125