Updating statusCode checks to accept all valid 2xx and 3xx HTTP status codes
Fix to perform regex on a string, since res.statusCode returns an integer
Updating statusCode checks to accept all valid 2xx and 3xx HTTP status codes