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