Issue #2812 - Invalid Requests

When the user generate invalids requests, the developer can handle by rewriting functions in extends class.

** Based on issue #2812 (https://github.com/EllisLab/CodeIgniter/issues/2812)