import http


def build_status(code: int) -> str:
    """
    Builds a string with HTTP status code and reason for given code.

    :param code: integer HTTP code
    :return: string with code and reason
    """

    status = http.HTTPStatus(code)

    def _process_word(_word: str) -> str:
        if _word == "OK":
            return _word
        return _word.capitalize()

    reason = " ".join(_process_word(word) for word in status.name.split("_"))

    text = f"{code} {reason}"
    return text