def METHOD_NAME():
    errorRate = random.randint(0,99)
    if errorRate < UPDATE_ERROR_RATE_THRESHOLD:
        logs('Order', 'Update operation failed - Service Unavailable: 503')
        raise Error('Update Order Failed - Service Unavailable', status_code=503)
    else:
        with tracer.start_as_current_span("update_order"):
            rawData = request.form
            failedItems = []
            for itemId in rawData.keys():
                qty = sum([val for val in rawData.getlist(itemId, type=int)])
                if qty >= 0:
                    databaseResponse = post(
                        "http://{}:8083/add_item_to_cart".format(DATABASE),
                        data={"ItemId": itemId, "Qty": qty})
                else:
                    databaseResponse = post(
                        "http://{}:8083/remove_item_from_cart".format(DATABASE),
                        data={"ItemId": itemId, "Qty": -qty})
                if databaseResponse.status_code != 200:
                    failedItems.append(itemId)
            if len(failedItems)>0:
                response = jsonify(
                    {"failed_items": failedItems}
                )
                response.status_code = 206
                response.status = "{} {}".format(
                    response.status_code, "Update order response contains failed items."
                )
                return response
            else:
                logs('Order', 'Update operations successful')
                return jsonify({"failed_items": []})