301 redirects mean a page has moved forever, passing all SEO benefits. 302 redirects are just for a short time and don’t carry full SEO value. A 404 error means content is gone, which can be bad for users and SEO.