Refactored the server response from a string to a enum with a status byte