def get(self, *args, **kwargs): if not check_file_exists(options.healthcheck_file_path): gen_logger.warn('%s does not exists', options.healthcheck_file_path) raise HTTPError(404) self.api_response('It works!')
def head(self, *args, **kwargs): if not check_file_exists(options.healthcheck_file_path): gen_logger.warn('%s does not exists', options.healthcheck_file_path) raise HTTPError(404)