json.loads the error message in the case where the HTTP status code is non-success, because that's what it does in the other case