diff --git a/src/htmx.js b/src/htmx.js index 7d917f5c..6a1e8378 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -3180,7 +3180,7 @@ return (function () { } } if (isError) { - triggerErrorEvent(elt, 'htmx:responseError', mergeObjects({error: "Response Status Error Code " + xhr.status + " from " + responseInfo.pathInfo.path}, responseInfo)); + triggerErrorEvent(elt, 'htmx:responseError', mergeObjects({error: "Response Status Error Code " + xhr.status + " from " + responseInfo.pathInfo.requestPath}, responseInfo)); } }