are you sure it's `req.errorCode` ? I'd say `req.error.name` is correct.

and by the way, it's `request` and I'd prefer `this` or `e.target` anyway ;)