@aral Benjamin pointed out that there is an extension that allows you to define hx-target-error: https://social.data.coop/@benjaoming/112439119762935983