corrects in config, front controller, create api error handler and base rest controller