Factor out REDIRECT_STATUSES.