Store status codes as constants

I noticed the status codes ('working', etc.) were represented in multiple places as hardcoded strings. For safer & DRYer code, I replaced these hardcoded references with centralized constants.