A lot of people (especially if you are in SEO field) know the difference between 301 and 302 (in case you don’t this Moz.com page explains it pretty well). I recently came across to a situation where I wanted to advice a client to change their vanity URLs from a 302 redirect to a 301 redirect.