Handle 301 redirects

This adds 301 to the list of status codes to redirect.