Upgrade to an enum for status codes