Unless you're compensated multiple times what a no-warranty version would cost, and do it for an industry where bug-free matters. And even then that's a question for the company lawyers as well. In short: if you ask on HN, it's almost certain you shouldn't try.
What you may be interested in is some form of a license / retainer, where you're available to the company as a contractor for X amount of time to fix potential issues raised. But don't ever mention bug-free and rent out your time, not results.
Now obviously, if you are making software for a medical device and you are willing to pay for what that entails, you can get very close to “probably won’t kill someone” but it still probably won’t be bug free.