Started working on error handling of REST controller.