def status_code_to_text(status):
    """
    Takes an Solarwinds Orion status code and translates it to
    human text and also a colour that can be used in Slack.
    """

    if status == 0:
        return ("Unknown", None)  # aka slack 'grey'
    elif status == 1:
        return ("Up", "#00ad52")  # aka slack 'good'
    elif status == 2:
        return ("Down", "#eb0000")  # aka slack 'danger'
    elif status == 3:
        return ("Warning", "#e89e0e")  # aka slack 'warning'
    elif status == 14:
        return ("Critical", "#eb0000")