Modfified for pass/failure email paradigm shift.
Enum that handles all known status codes that decides which type of email should be sent.