see https://mxr.mozilla.org/mozilla-central/source/dom/base/nsIDOMDOMRequest.idl and https://mxr.mozilla.org/mozilla-central/source/dom/base/nsIDOMDOMError.idl