fix 204 response handling in http client