Use ErrorController only if there is an error