fix broken check

the range of "ok" responses from the server is 2XX, not 1XX