Documentation ¶ Index ¶ func CheckResponse(resp *http.Response, acceptableCodes ...int) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CheckResponse ¶ func CheckResponse(resp *http.Response, acceptableCodes ...int) error CheckResponse takes a http.Response and a variadic of ints representing acceptable http status codes. The error returned will attempt to include some content from the server's response. Types ¶ This section is empty. Source Files ¶ View all Source files responsechecker.go Click to show internal directories. Click to hide internal directories.