Better error handling for the server response and set expiration for redis keys in the StudentClient class