Updating statusCode checks to accept all valid 2xx and 3xx HTTP status codes