Usually the errors are in `event.target.error.name` (or `request.error.name` which is the same), are you sure it's in `code` instead of `error` ?