Extracted status and error patterns to constants