Closed mikelolasagasti closed 2 months ago
The status code is already handled by the API client.
Also, the error is handled by the first if err != nil
, so the response will never contain a status different than 2XX after this if
.
https://github.com/vultr/govultr/blob/d2142cf9d4b52038721b4fb452441acf28f49d11/govultr.go#L214-L223
Version v3 of the API
adds http.response to calls, add a function to report response code.https://github.com/vultr/govultr/compare/v2.17.2...v3.9.0