Added server error message handling to client.