code: def check_response(self, resp):
          
          if resp.status_code == 400:
              raise ApiException(json.loads(resp.content).get('message'))
          return resp
docs: raise a descriptive exception on a "bad request" response