LB-1662 Review changes

Added Todos for errors codes.
Changed sended variable to sent.