only redirect for 3xx status codes