def process_command_response(self, command, response):
if response.startswith(b"<STR_LIT>"):<EOL><INDENT>raise UnknownCommandError(command)<EOL><DEDENT>if response == b"<STR_LIT>":<EOL><INDENT>raise PermissionError(command)<EOL><DEDENT>if response == b"<STR_LIT>":<EOL><INDENT>raise UnknownServerError(command)<EOL><DEDENT>response = response.decode()<EOL>return response.rstrip("<STR_LIT:\n>")<EOL>
Takes an HAProxy socket command and its response and either raises
an appropriate exception or returns the formatted response.