docs: def status(request):  # pylint: disable=unused-argument
      """Status"""
      token = request.GET.get("token", "")
      if not token or token != settings.STATUS_TOKEN:
          raise Http404()
  
      info = {}
      check_mapping = {
          'REDIS': (get_redis_info, 'redis'),
          'ELASTIC_SEARCH': (get_elasticsearch_info, 'elasticsearch'),
          'POSTGRES': (get_pg_info, 'postgresql'),
          'CELERY': (get_celery_info, 'celery'),
          'CERTIFICATE': (get_certificate_info, 'certificate'),
      }
  
      for setting, (check_fn, key) in check_mapping.items():
          if setting in settings.HEALTH_CHECK:
              log.debug('getting: %s', key)
              info[key] = check_fn()
              log.debug('%s done', key)
  
      code = HTTP_OK
      status_all = UP
      for key in info:
          if info[key]["status"] == DOWN:
              code = SERVICE_UNAVAILABLE
              status_all = DOWN
              break
  
      info["status_all"] = status_all
  
      resp = JsonResponse(info)
      resp.status_code = code
      return resp