Update exception throwing in controller for invalid action