Open mcdado opened 10 months ago
The client expects response http code 200 but some endpoints (in my case domain zone refresh) started returning 204:
https://github.com/ovh/node-ovh/blob/06d61afd5e21c9872b80de2695f13ef2be1b8ae8/lib/ovh.es5.js#L197
https://github.com/ovh/node-ovh/blob/06d61afd5e21c9872b80de2695f13ef2be1b8ae8/lib/ovh.es6.js#L176
Should be res.statusCode >= 400
res.statusCode >= 400
I did a very quick search, didn't see that I'm referring to another call. Either way, the recently merge #50 is not published yet to npm, so the issue is still active.
The client expects response http code 200 but some endpoints (in my case domain zone refresh) started returning 204:
https://github.com/ovh/node-ovh/blob/06d61afd5e21c9872b80de2695f13ef2be1b8ae8/lib/ovh.es5.js#L197
https://github.com/ovh/node-ovh/blob/06d61afd5e21c9872b80de2695f13ef2be1b8ae8/lib/ovh.es6.js#L176
Should be
res.statusCode >= 400