Created new class for sending error codes into the server.