What are HTTP status codes?
HTTP status codes are three-digit numbers returned by a server to indicate the result of an HTTP request. The first digit indicates the class: 1xx informational, 2xx success, 3xx redirect, 4xx client error, 5xx server error.
What's the difference between 301 and 302?
301 is a permanent redirect — search engines update their index to the new URL. 302 is a temporary redirect — search engines keep the original URL in their index.