code: def get_object_or_404(queryset, *args, **kwargs):
      
      try:
          return queryset.get(*args, **kwargs)
      except (ValueError, TypeError, DoesNotExist, ValidationError):
          raise Http404()
docs: replacement of rest_framework.generics and django.shrtcuts analogues