extractError checks if the response signifies an error (for now, StatusCode != 200 or StatusCode != 201). If so, it returns the error. Otherwise, it returns nil.
(resp *http.Response)
source not stored for this graph (policy: none)
no test coverage detected