changed default not to redirect when get redirect status code from server