support for different redirect codes