Use response codes defined in httplib instead of hard-coded ints.