`APIError.Details` was empty because the `ioutil.ReadAll` was reading an empty `http.Response.Body`. The body of the response was read earlier by the `decodeResponse` func before attempting to read it again in `newAPIError`. Changed the signature of `decodeResponse` to accept a []byte as the second argument. Example [commit](https://github.com/rpip/paystack-go/commit/6e97722f106ca74876c8dbfdf66cf968c89beb5e). Check changes made to [paystack.go](https://github.com/rpip/paystack-go/commit/6e97722f106ca74876c8dbfdf66cf968c89beb5e#diff-1abf81291c565bbd7cb912f117c5efc2) and [error.go](https://github.com/rpip/paystack-go/commit/6e97722f106ca74876c8dbfdf66cf968c89beb5e#diff-faeee970b41138d8bdc51e7aa3601141)