Problem Statement
DOMException.code is a deprecated feature. Reference: https://developer.mozilla.org/en-US/docs/Web/API/DOMException
The codes are also hardly practical, considering only the numeric value of them is shown in the Sentry UI:

Solution Brainstorm
DOMException.name is the current best-practice in identifying these errors, and is supported widely across browsers:

Problem Statement
DOMException.codeis a deprecated feature. Reference: https://developer.mozilla.org/en-US/docs/Web/API/DOMExceptionThe codes are also hardly practical, considering only the numeric value of them is shown in the Sentry UI:

Solution Brainstorm
DOMException.name is the current best-practice in identifying these errors, and is supported widely across browsers: