(response)
return reason
Return the reason from a response.

    Args:
        response (requests.Response): a response object from a HTTP
            request.

    Returns:
        str: a string with the reason field extracted from the
            response.reason.
Return the reason from a response.
Return the reason from a response .
def _get_reason(response):
    """Return the reason from a response.

    Args:
        response (requests.Response): a response object from a HTTP
            request.

    Returns:
        str: a string with the reason field extracted from the
            response.reason.
    """
    reason = response.reason
    if isinstance(reason, bytes):
        return reason.decode('utf-8')

    return reason
def _get_reason ( response ) : reason = response . reason if isinstance ( reason , bytes ) : return reason . decode ( 'utf-8' ) return reason