@app.route('/status/<codes>',
           methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'TRACE'])
def view_status_code(request, codes):

    if ',' not in codes:
        code = int(codes)
        return status_code(code)

    choices = []
    for choice in codes.split(','):
        if ':' not in choice:
            code = choice
            weight = 1
        else:
            code, weight = choice.split(':')

        choices.append((int(code), float(weight)))

    code = weighted_choice(choices)

    return status_code(code)
Remove a stream from the memory.
dataset/ETHPy150Open mozillazg/bustard/tests/httpbin/core.py/view_status_code--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_cftp.py/FilesystemAccessExpectations.pop