def _handle_activating_mode(state, request_endpoint):
    status = state['status']

    if request_endpoint == 'snapshots/<string:snapshot_id>':
        if request.method in FORBIDDEN_METHODS:
            return _return_maintenance_error(status)
    if request_endpoint == 'snapshots/' \
                           '<string:snapshot_id>/restore':
        return _return_maintenance_error(status)

    if request_endpoint == 'executions':
        if request.method in FORBIDDEN_METHODS:
            return _return_maintenance_error(status)

    if request_endpoint == 'deployments/<string:deployment_id>':
        if request.method in FORBIDDEN_METHODS:
            return _return_maintenance_error(status)

    if request_endpoint == 'deployment-modifications':
        if request.method in FORBIDDEN_METHODS:
            return _return_maintenance_error(status)
dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/rest-service/manager_rest/maintenance.py/_handle_activating_mode/original