Create ErrorRedirectException and use it to call the error controllers.