In the function client.SendRequestAndReadResponse currently it only approves http.StatusOk (aka 200). However this fails if we get a code such as 201 success with no body or 204 no content. We should change it to accept all http status codes from 200 to 299.
In the function client.SendRequestAndReadResponse currently it only approves http.StatusOk (aka 200). However this fails if we get a code such as 201 success with no body or 204 no content. We should change it to accept all http status codes from 200 to 299.