'Delegate response to handler methods.
If no handler defined, send a 404 response.'

def _send_handler_response(self, method):

    if (method in self.URL_HANDLERS):
        handlers_list = self.URL_HANDLERS[method]
    else:
        self.log_error("Unrecognized    method    '{method}'".format(method=method))
        return
    if self._match_pattern(handlers_list):
        return
    else:
        self.send_response(404, content='404    Not    Found')
