Errors handling controller implemented