<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cts_error(self, error_name, message=None):
 """ Create a CTS Error reply :param error_name: Name of the error :param message: Message of the Error :return: CTS Error Response with information (XML) """

        self.nautilus_extension.logger.info(
            "CTS error thrown {} for {} ({})".format(
                error_name,
                request.query_string.decode(),
                message)
        )
        return render_template(
            "cts/Error.xml",
            errorType=error_name,
            message=message
        ), 404, {"content-type": "application/xml"}