handle redirect status codes