package IMuAHx_6.KQgRr5e_0.KQgRr5e_0;

import IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.IFxWkV_5.KQgRr5e_0;
import java.io.IOException;
import java.net.ProtocolException;
/* compiled from: RedirectUtil.java */
/* loaded from: classes.dex */
public class IFxWkV_5 {
    public static String KQgRr5e_0(KQgRr5e_0.InterfaceC0002KQgRr5e_0 interfaceC0002KQgRr5e_0, int i) throws IOException {
        String KQgRr5e_0 = interfaceC0002KQgRr5e_0.KQgRr5e_0("Location");
        if (KQgRr5e_0 != null) {
            return KQgRr5e_0;
        }
        throw new ProtocolException("Response code is " + i + " but can't find Location field");
    }

    public static boolean KQgRr5e_0(int i) {
        return i == 301 || i == 302 || i == 303 || i == 300 || i == 307 || i == 308;
    }
}
