probably easier to use an array of all redirect codes: `[301, 302, 303, 307, 308]` and check for membership