We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0612d commit c31fcd8Copy full SHA for c31fcd8
yarn_api_client/base.py
@@ -44,7 +44,7 @@ def request(self, api_path, method='GET', **kwargs):
44
else:
45
response = requests.request(method=method, url=api_endpoint, headers=headers, **kwargs)
46
47
- if response.status_code == requests.codes.ok:
+ if response.status_code in (200, 202):
48
return self.response_class(response)
49
50
msg = 'Response finished with status: %s. Details: %s' % (response.status_code, response.text)
0 commit comments