Uses sendError method from apiHelper