Switch to using res.ok to allow for 301, 302, etc.