what exactly are Type I and Type II errors in statistics?

what exactly are Type I and Type II errors in statistics? If you make a product and ship a bad product to customers, thinking it was good, can you illustrate how this scenario might be either a type I error type II error? Type I Error: It is the event of rejecting the...