(response, logger)
return status
Check return status and return a boolean.

    Args:
        response (requests.Response): a response object from a HTTP
            request.
        logger (logging.Logger): a logger object that can be used to
            write log messages.

    Returns:
        bool: a boolean indicating whether the return status was in
            the 20X range of HTTP responses.
Check return status and return a boolean.
Check return status and return a boolean .
def check_return_status(response, logger):
    """Check return status and return a boolean.

    Args:
        response (requests.Response): a response object from a HTTP
            request.
        logger (logging.Logger): a logger object that can be used to
            write log messages.

    Returns:
        bool: a boolean indicating whether the return status was in
            the 20X range of HTTP responses.
    """
    status = response.status_code in definitions.HTTP_STATUS_CODE_20X
    if status:
        return status

    logger.warning('Failed response: [{0:d}] {1:s}'.format(
        response.status_code, _get_message(response)))
    return status
def check_return_status ( response , logger ) : status = response . status_code in definitions . HTTP_STATUS_CODE_20X if status : return status logger . warning ( 'Failed response: [{0:d}] {1:s}' . format ( response . status_code , _get_message ( response ) ) ) return status