parameters: (self, req, response)
docstring: Respond with an error.
  
          Don't bother writing if a response
          has already started being written.
docstring_summary: Respond with an error.
docstring_tokens: Respond with an error .
function: def _conditional_error(self, req, response):
          """Respond with an error.
  
          Don't bother writing if a response
          has already started being written.
          """
          if not req or req.sent_headers:
              return
  
          try:
              req.simple_response(response)
          except errors.FatalSSLAlert:
              pass
          except errors.NoSSLError:
              self._handle_no_ssl(req)
function_tokens: def _conditional_error ( self , req , response ) : if not req or req . sent_headers : return try : req . simple_response ( response ) except errors . FatalSSLAlert : pass except errors . NoSSLError : self . _handle_no_ssl ( req )