added convenience methods $ok, $notOk and $error do ease use in angularjs