Change global_http_status to global_type

**See the last comment...**

I'm getting a lot of comments on this and I'd like to be able to track them all in one place, so opening this as a pull request for that purpose. More work has to be done.