add "status" typedef and OK/ERROR macros (constants)