do: code.lowerRange <= statusCode && statusCode < upperRange
For one it is easier to read, for another a 300 code should not return QUERY_SUCCESS; as written what gets returned for status 300 depends on the iteration order