Store status codes as constants

I noticed the status codes ('working', etc.) were represented as hardcoded strings. For safer & DRYer code, I eliminated all hardcoded references and represented them as constants instead.