code: def error_response(self, code, content=''):
          
          self.send_response(code)
          self.send_header('Content-Type', 'text/xml')
          self.add_compliance_header()
          self.end_headers()
          self.wfile.write(content)
docs: Construct and send error response.