API comments: add helpers to return errors
Add missing dots for error messages in the API