Changed to enum error status from strings