changed calculator api controller response code