Drag and drop the expressions below onto the code to implement error handling. Not all options are used. <DragDrop items={["if response == 601:","else:","when:","if status == 201:","elif:"]} slots={[{"answer":"if status == 201:","id":"condition"},{"answer":"else:","id":"failure_branch"}]} template={"base_url = “https://api.meraki.com/api/v0”\nposturl = “%s/networks/%s/staticRoutes” % ((str(base_url), str(networkid)))\nheaders = {\n ‘X-cisco-meraki-api-key’: api_key,\n ‘Content-Type’: ‘application/json’\n}\nroutes = [ {\n “subnet”: “10.16.4.0/22”,\n “gatewayIp”: “10.1.0.20”,\n “name”: “ROUTE1”,\n “enabled”: true\n },\n {\n “subnet”: “10.253.254.0/24”,\n “gatewayIp”: “10.1.0.20”,\n “name”: “ROUTE2”,\n “enabled”: true\n },\n {\n “subnet”: “10.168.0.0/21”,\n “gatewayIp”: “10.1.0.20”,\n “name”: “ROUTE3”,\n “enabled”: true\n } ]\n\nfor route in routes:\n print(“Adding static: “ + str(route[’subnet’]))\n response = requests.post(posturl, json=route, headers=headers)\n {{condition}}\n print(“Done!”)\n {{failure_branch}}\n print(“Failed to add static: “ + str(route[’subnet’]) + “\\n” + response.text)"} explanation={"The Meraki static-route creation operation returns HTTP 201 for a successful create operation. The success message therefore belongs under `if status == 201:`, while `else:` reports all unsuccessful responses.\n\n**Learn more:** [Create Network Appliance Static Route — Meraki Dashboard API](https://developer.cisco.com/meraki/api-v1/create-network-appliance-static-route/)"} reuse={false} />