Use (200 <= reply.code < 300) instead of a regex for testing that the response code is in the 200 range