handle non-200 responses from github