Support all the redirect status codes and introduce a maximum number of redirects followed.