puts ERROR from api controller