def build_error_response(self, version, reason, message):
batch_item = messages.ResponseBatchItem(<EOL>result_status=contents.ResultStatus(<EOL>enums.ResultStatus.OPERATION_FAILED<EOL>),<EOL>result_reason=contents.ResultReason(reason),<EOL>result_message=contents.ResultMessage(message)<EOL>)<EOL>return self._build_response(version, [batch_item])<EOL>
Build a simple ResponseMessage with a single error result.

Args:
    version (ProtocolVersion): The protocol version the response
        should be addressed with.
    reason (ResultReason): An enumeration classifying the type of
        error occurred.
    message (str): A string providing additional information about
        the error.

Returns:
    ResponseMessage: The simple ResponseMessage containing a
        single error result.