Rest API - Advanced Patterns
A developer wrote this code to start a long-running task and check its status:
What is the error in this code?
response = start_task()
if response.status_code == 202:
status_url = response.json()["status_url"]
result = requests.post(status_url)
print(result.json())What is the error in this code?
