def METHOD_NAME(lab_id, to_path):
    try:
        if lab_id not in labs:
            return Response('No lab with id %d' % lab_id, status=404)
        if lab_id == HW_LAB_ID:
            return proxy_request(HW_LOCKKEEPER_REST_HOST, '5001', to_path)
        return proxy_request(make_container_name(lab_id), '5001', to_path)
    except Exception as ex:
        logger.exception(ex)
        return Response(str(ex), status=500)