added comment for sendErrorCode method