Fix HTTP return codes checks to allow for broader ranges