Check the request is ok Args: rsp (Response): The request response body Returns: bool: `True` if success otherwise `False`.
(rsp)
| 75 | |
| 76 | |
| 77 | def is_ok(rsp): |
| 78 | """ Check the request is ok |
| 79 | |
| 80 | Args: |
| 81 | rsp (Response): The request response body |
| 82 | |
| 83 | Returns: |
| 84 | bool: `True` if success otherwise `False`. |
| 85 | """ |
| 86 | return rsp['Code'] == HTTPStatus.OK and rsp['Success'] |
| 87 | |
| 88 | |
| 89 | def _decode_response_error(response: requests.Response): |