π > htmx ~ The response-targets Extension βββββββββββββββββββββββββββββββββββββββββββ !https://htmx.org/extensions/response-targets/ Date: April 30, 2024 > htmx ~ The htmx Response Targets Extension Extension htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypert... htmx.org The htmx response-targets extension allows me to respond to errors from the backend and do normal htmx swaps. β NOTE β β ``` β β by default htmx will only swap on 200 and 300 responses β β ``` Load the extension in head ``` ``` Use the extension on an endpoint that might return a 400. ```