the new code can only be done with in_array if you build an array of all 2xx codes.

However, a more readable (and cleaner) way would be to compare the code as ``>= 200 && <300`` as it is an integer