getMessage(), "ERROR"); } if (is_null($trackinginfo)) { sendJsonResp("Could not find any results for that tracking code.", "ERROR"); } exitWithJson($trackinginfo->toObject());