flask return status code 200 and json

JavaScript
return jsonify(data), 200

Source

Also in JavaScript: