Rest API - HTTP Status Codes
Identify the error in this REST API code snippet that attempts to return a 409 Conflict status:
def update_resource(data):
if resource_exists(data['id']):
return {"error": "Conflict"}, "409"
else:
save(data)
return {"message": "Saved"}, 201
