How to handle 404 errors with htmx in Django

Enhance user experience by gracefully handling 404 errors with htmx in Django