title: Pass error on socket
body: <p>I am writing a general Client-Server socket program where the client sends commands to the Server, which executes it and sends the result to the Client. <br><br>
  However if there is an <b>error</b> while executing a command, I want to be able to <b>inform the Client</b> of an error. I know I could send the String "ERROR" or maybe something like -1 etc, but these could also be part of the command output. Is there any better way of sending an error or an exception over a socket.<br><br>
  My Server is in Java and Client is in Python </p>