Could we do `if (200 <= reply.code && reply.code < 300) {` instead? Doing a regex on an integer feels odd to me.