Minifying code can result in constructor.name changing (because a minifier can change function and class names), so it's not a reliable way to identify errors. Instead we should identify NotFound errors by adding an Error.code value in @comapeo/core and check the error type based on that.