Handle all responses
        :param response:
        :type response:
        :return:
        :rtype:

def _handle_response(self, response):
        """
        Handle all responses
        :param response:
        :type response:
        :return:
        :rtype:
        """
        if response.status_code == requests.codes.ok or response.status_code == requests.codes.created:
            try:
                return response.json()
            except ValueError:
                return response
        else:
            return self._handle_failed_response(response)